At 03:45 19/12/2009, Rick Schumeyer wrote:
>The following rule generates an "illegal option output" error 
>when I attempt to generate code in antrlworks 1.3.1.
>
>EQUOTE    :    '\\'! '"';
>
>I see that others have had the same problem, but I couldn't find 
>the solution.
>
>Is the ! operator supposed to work in a non-AST grammar?

No, and not in the lexer.  Instead of using !, you need to 
explicitly set the text of the token via { $text = "xxx"; } or { 
setText("xxx"); } or something similar, depending on your target 
language.  See the examples and the wiki.


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--

You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.


Reply via email to