ANLTR precedence across multiple parser rules

前端 未结 0 1816
一整个雨季
一整个雨季 2021-02-05 08:23

Consider the following grammar

grammar precedence;

s: expr EOF;
expr: \'!\' expr | expr \'.\' ID | ID;

ID: [a-zA-Z];
WS: [ \\n] -> skip;

Giv

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