I'm new to ANTLR after decades of using LALR parser generators ...
I have this rule:
dclobjects: dclobject (COMMA dclobject)* ';'
I'm getting these messages "mismatched input IF on line xxxx" ...
... when an IF statement follows one of these declarations.
BUT ... the parser then figures it out and correctly closes out the dclobjects statement and then moves on to the IF statement.
This is the behavior I want; why the message on 'mismatch'?