更新IR,.g4修改
This commit is contained in:
@@ -153,10 +153,10 @@ cond: lOrExp;
|
||||
lValue: Ident (LBRACK exp RBRACK)*;
|
||||
|
||||
// 为了方便测试 primaryExp 可以是一个string
|
||||
primaryExp: LPAREN exp RPAREN #parenExp
|
||||
| lValue #lVal
|
||||
| number #num
|
||||
| string #str;
|
||||
primaryExp: LPAREN exp RPAREN
|
||||
| lValue
|
||||
| number
|
||||
| string;
|
||||
|
||||
number: ILITERAL | FLITERAL;
|
||||
unaryExp: primaryExp #primExp
|
||||
|
||||
Reference in New Issue
Block a user