Closed prasad83 closed 4 years ago
Hi @prasad83!
Yeah, that's because array
is a reserved word in PHP. What about opening an issue (and a PR) on https://github.com/antlr/grammars-v4 with this change?
Closing as it seems to be addressed by https://github.com/antlr/grammars-v4/pull/1653
antlr4 -Dlanguage=PHP JSON.g4
error(134): JSON.g4:20:0: symbol array conflicts with generated code in target language or runtime
Replacing (array) to (arr) in JSON.g4 works.