On 08/03/15 12:34, Van Le Nguyen wrote:
> Hi all,
> I type grammar CSV on page 143 of "The Definitive ANTLR 4 Reference"
> book use the ANTLRWork2.1
> . But the warning isue "implicit token definition in parser rule" at:
> /row : field (',' field)* '\r'? '\n' ;/
> Could you help me!
> Thanks you very much.
Add token definitions for the literals:
COMMA: ',';
CR: '\r';
NL: '\n';
Then in your parser:
row : field (COMMA field)* CR? NL ;
You are now using explicit token definitions.
> --
> 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
> <mailto:antlr-discussion+unsub...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
--
Kevin J. Cummings
kjc...@verizon.net
cumm...@kjchome.homeip.net
cumm...@kjc386.framingham.ma.us
Registered Linux User #1232 (http://www.linuxcounter.net/)