25 Mar 2014, 09:12
Generic-user-small

Kasper Nielsen (1 post)

Hi,

When I try to generate code using the Cymbol.g4 grammer listed in chapter 12.1 I get the following warnings (no problems with ANTLR 4.1)

warning(155): Cymbol.g4:56:34: rule ‘WS’ contains a lexer command with an unrecognized constant value; lexer interpreters may produce incorrect output warning(155): Cymbol.g4:59:37: rule ‘SL_COMMENT’ contains a lexer command with an unrecognized constant value; lexer interpreters may produce incorrect output

The grammer is listed here: http://media.pragprog.com/titles/tpantlr2/code/lexmagic/Cymbol.g4

Anyway to get rid of these warnings?

21 Jul 2014, 16:14
Australia-3_pragsmall

Terence Parr (37 posts)

Hi. See https://github.com/antlr/antlr4/issues/497

  You must be logged in to comment