unary negation in parsing java

前端 未结 0 1830
眼角桃花
眼角桃花 2021-02-14 11:11

What I am trying to do is allowing expression like 8 - - - 2 + 3.

program ::= expr:e
            {: RESULT = ...; :}
         ;

expr ::= INTCONST:c
         {: R         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题