Skip to content

Commit

Permalink
fix(#2769): grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Jan 12, 2024
1 parent 63cb73c commit 209261c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions eo-parser/src/main/antlr4/org/eolang/parser/Phi.g4
@@ -1,5 +1,9 @@
grammar Phi;

// Skip spaces, tabs, newLines
WS : [ \t\r\n]+ -> skip
;

program
: LCB bindings RCB
;
Expand All @@ -17,7 +21,7 @@ formation

bindings
: binding?
| binding (COMMA SPACE binding)*
| binding (COMMA binding)*
;

binding
Expand All @@ -28,7 +32,7 @@ binding
;

alphaBinding
: attribute SPACE ARROW SPACE object
: attribute ARROW object
;

attribute
Expand All @@ -45,15 +49,15 @@ alphaAttr
;

emptyBinding
: attribute SPACE ARROW SPACE EMPTY
: attribute ARROW EMPTY
;

deltaBidning
: DELTA SPACE DASHED_ARROW SPACE BYTES
: DELTA DASHED_ARROW BYTES
;

lambdaBidning
: LAMBDA SPACE DASHED_ARROW SPACE FUNCTION
: LAMBDA DASHED_ARROW FUNCTION
;

FUNCTION
Expand Down Expand Up @@ -108,9 +112,6 @@ DOT : '.'
COMMA
: ','
;
SPACE
: ' '
;
ARROW
: ''
;
Expand Down

0 comments on commit 209261c

Please sign in to comment.