[antlr-interest] ANTLR274:C++: Lexer virtual token member??

Ric Klaren klaren at cs.utwente.nl
Tue Sep 7 07:04:37 PDT 2004


On Tue, Sep 07, 2004 at 11:41:02AM -0000, Francis ANDRE wrote:
> I need to have some of the generated Lexer members (those that 
> recognize token) as virtual so I can overide the lexeme depending on 
> external contextual values.

I'm a bit unclear to which methods you're referring. If you want to
override individual rules by overriding their methods then you may have a
problem since rules in general cannot be lifted out of their context. (the
first/follow sets need to be the same)

Cheers,

Ric
-- 
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893755  ----
-----+++++*****************************************************+++++++++-------
  "You know how to use that thing?" [pointing to the sword]
  "Sure.. The pointy end goes into the other guy."
  --- The Mask of Zorro



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list