grammar Xxx;
rulen : (rule1 | rule2 | CRLF)+ EOF;
rule1 : ID1 (WS+ (STRING | ID1 | ID2 ) )* CRLF;
rule2 : ID2 (WS+ (STRING | ID1 | ID2 ) )* CRLF;
ID1 : 'STRINGS';
ID2 : 'DEF';
STRING : [A-Za-z0-9]+;
WS : [ ];
CRLF : '\r'? '\n';
The book by Terence Parr, "The Definitive ANTLR 4 Reference", chapter 12.2 pp. 209-211 discusses the solution to your specific problem in a subchapter titled "Treating Keywords As Identifiers".
--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
As a result, I debug from the bash shell command line.