I have a working LALR grammar in PLY that builds a parser for a subset of PL/1. I was asked to move it
to ANTLR4 by the management and have done so, but I'm having an issue.
One of the segments in the grammar is:
dclobject : idorlist dclattrs type optinit
| maplist ';'
;
... and dclattrs, type and optinit are all optional, really should be specified as type* and init* ...
But with the original I'm getting an 'Extraneous input' error on a semicolon, and if I make changes I get '
Problems calling org.antlr.v4.gui.TestRig.main(args)
and it won't run at all.
Any ideas for a general approach to this problem?