Closed at15 closed 6 years ago
this is because I specify ' ' in list's rule .... https://stackoverflow.com/questions/44293377/how-to-fix-extraneous-input-expecting-in-antlr4, since we already have WS
in token, we don't need to add that space in rule anymore
wrong
list
: '[' literal (' ' literal)* ']'
;
correct
list
: '[' literal* ']'
;