Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
e   :   e '^' e // right associative
    |   e '*' e
    |   unary
    |   e ('+'|'-') e
    |   suffix_
    |   suffix
    |   primary
    ;

unary_suffix
    :   e '++[' e ']'
    |   e '-(' e (',' e)* ')'
 ;  suffix_
    : |   e '.++' ID
    ;

suffixunary_
    :   e '[++' e
']'     |   e '(-' e
(',' e)* ')'    ;

suffix_
    |:   e '++.' ID
    ;

primary_
    :   '(' e ')'
    |   INT
    |   ID
    ;

...