problem Keyword token antlr
- by batman_for
If the 'for' is used both as a command and as "the English word":
for_statement: 'for' ...
id: 'for'
| ID
;
ID: ...
right?
My problem is how to differentiate the two cases.
For example for_statement is only possible beginning of a line (only if preceded by ' ' or '\t').
Thanks.