[antlr-interest] Jim Idle: Getting names of lexer/parser rules from the C-Runtime

Jim Idle jimi at temporal-wave.com
Wed Oct 5 11:30:48 PDT 2011


No - you have to code that. But they are rarely useful. If you want them
as indicators for error refinement, then implement a global scope and add
it to each rule, in the rule set a scope member variable to a predefined
value for each rule, then access the scope stack in the error reporting
method.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Udo Weik
> Sent: Wednesday, October 05, 2011 10:57 AM
> To: Antlr-Interest Antlr.Org
> Subject: Re: [antlr-interest] Jim Idle: Getting names of lexer/parser
> rules from the C-Runtime
>
> Hello again Jim,
>
> yep, is that possible at all?
>
>
> Many thanks and greetings
> Udo
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address


More information about the antlr-interest mailing list