[antlr-interest] ANTLR syntax bug with array return types

Olivier Lefevre lefevrol at yahoo.com
Wed Feb 27 06:09:52 PST 2008


Gavin Lambert wrote:
> IIRC, the brackets need escaping:
> 
>    foo returns [List\[\] lists] <blah blah>

Thanks. However if I escape them I get "List\\" in the Java file.
In any case it looks to me like in this position ANTLR ought to be
able to figure out that it is a code block and treat everything
literally, hence not need escapes.

Any other idea?

-- O.L.



More information about the antlr-interest mailing list