[antlr-interest] Conditional lexing

Juancarlo Añez apalala at gmail.com
Fri Sep 14 06:47:17 PDT 2012


On Fri, Sep 14, 2012 at 4:24 AM, Mike Lischke <mike at lischke-online.de>wrote:

> Jim, as a side note: the C target code generator generates sometimes
> invalid code leading to a compilation error, due to the fact the grammar
> line is included in the source code. Most of the time a single line comment
> is used but for no apparent reason the multi line variant is used which
> then conflicts with the '*/' part. This is why I wrote '*' '/' in the rule
> above.


That happens with the Java target too.

-- 
Juancarlo *Añez*


More information about the antlr-interest mailing list