State 107
path_element -> '[' int . ']' (rule 25)
num_lit -> int . (rule 61)
',' reduce using rule 61
']' shift, and enter state 130
(reduce using rule 61)
State 130
path_element -> '[' int ']' . (rule 25)
'in' reduce using rule 25
'.' reduce using rule 25
'?' reduce using rule 25
'??' reduce using rule 25
'==' reduce using rule 25
'!=' reduce using rule 25
'>' reduce using rule 25
'<' reduce using rule 25
'<=' reduce using rule 25
'>=' reduce using rule 25
'&&' reduce using rule 25
'||' reduce using rule 25
'}}' reduce using rule 25
'[' reduce using rule 25
')' reduce using rule 25
Rule 61
num_lit -> int (61)
We needed to set the int case of the num_lit production rule to be lower precedence then ] for path lookups. I believe that the parser defaulting to the correct behavior but now it will explicitly perform correctly.
I also went ahead and regenerated the BNF grammar for documentation purposes.
We had a shift/reduce conflict on the
]
token:We needed to set the
int
case of thenum_lit
production rule to be lower precedence then]
for path lookups. I believe that the parser defaulting to the correct behavior but now it will explicitly perform correctly.I also went ahead and regenerated the BNF grammar for documentation purposes.