I have a simple rule like so:
ifClause: 'if' '(' condition ')' '{' (structField)+ '}' ;
condition: .*?;
This works for parsing:
if (abc == def) {
<something>
}
But errors out on:
if (abc.xyz == def) {
<something>
}
with the error:
line NN:MM token recognition error at: '.'
Why would it not consume '.'
character when matching .*?
I am using Antlr 4.5.3 and Python output.