Jim Idle wrote:
2. Is there a way to set the value of token GUARD to be just the
IDPART portion of the lexem?
  
    

GUARD	:	'#' LETTER+ WS idp=IDPART '_'
			{ $text = $idp.text; } // Should work
        ;


  
Sorry - not enough tea yet - this shoudl be:

GUARD   :       '#' LETTER+ WS ii=IDPART '_'
                { setText($ii.text); }
;

Looks like you do not get a warning on your WS+, but it means that the rule is wrong of course.

Jim

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

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

Reply via email to