Skip to content

Commit

Permalink
fix(#3649): phi grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Dec 12, 2024
1 parent d55089c commit ed6b5e6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ SOFTWARE.
</xsl:when>
<xsl:otherwise>
<xsl:text>.</xsl:text>
<xsl:value-of select="."/>
<xsl:choose>
<xsl:when test=".='φ'">
<xsl:text>@</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
# SOFTWARE.
---
asserts:
- //o[@base='org.eolang.io.stdout' and not(@abstract) and @name='x']
- //o[@base='org.eolang.io.stdout' and not(@abstract) and @name='x']/o[@as='text' and @base='.bytes']
- //o[@base='org.eolang.io.stdout' and not(@abstract) and @name='x']/o[@as='size' and @base='.int']
- //o[@base='org.eolang.io.stdout' and @name='x']/o[@as='text' and @base='.bytes']
- //o[@base='org.eolang.io.stdout' and @name='x']/o[@as='size' and @base='.int']
- //o[@base='org.eolang.malloc.@' and @name='y']/o[@as='arg' and @base='.nan']
phi: |
{
Expand All @@ -37,6 +37,10 @@ phi: |
),
λ ⤍ Lorg_eolang_io_stdout
⟧,
y ↦ ⟦
arg ↦ Φ.org.eolang.nan,
λ ⤍ Lorg_eolang_malloc_φ
⟧,
λ ⤍ Package
⟧,
λ ⤍ Package
Expand Down
2 changes: 1 addition & 1 deletion eo-parser/src/main/antlr4/org/eolang/parser/Phi.g4
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ lambdaBinding
;

FUNCTION
: [A-Z] ~[ \r\n\t,.|':;!\-?\][}{)(⟧⟦]*
: [A-Z][A-Za-z_φ]*
;

application
Expand Down

0 comments on commit ed6b5e6

Please sign in to comment.