We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 730945c commit eacc811Copy full SHA for eacc811
src/main/antlr4/DecafParser.g4
@@ -83,16 +83,16 @@ lValue
83
expr
84
: lit # literal
85
| THIS # this
86
- | '(' expr ')' # paren
87
- | '(' CLASS id ')' expr # classCast
88
| READ_INTEGER '(' ')' # readInt
89
| READ_LINE '(' ')' # readLine
90
| NEW id '(' ')' # newClass
91
| NEW elemType=type '[' length=expr ']' # newArray
92
| INSTANCEOF '(' expr ',' id ')' # classTest
+ | '(' expr ')' # paren
93
| varSelOrCall # singlePath
94
| expr '.' varSelOrCall # path
95
| array=expr '[' index=expr ']' # indexSel
+ | '(' CLASS id ')' expr # classCast
96
| prefix=('-'|'!') expr # unary
97
| lhs=expr infix=('*'|'/'|'%') rhs=expr # binary
98
| lhs=expr infix=('+'|'-') rhs=expr # binary
0 commit comments