[antlr-interest] ignore a keyword !!
Ric Klaren
klaren at cs.utwente.nl
Thu Dec 11 08:42:06 PST 2003
On Thu, Dec 11, 2003 at 12:59:28PM +0530, Nijesh Panchratna, Noida wrote:
> I am new to antlr-interest.I need a help from this group.
> Actually,while parsing a file,I am getting an error saying $ROLE not
> defined. I want to ignore this keyword .What are the ways to do this???
> thanks in advance.
Define it as a rule in the lexer I guess and tell antlr's lexer to skip it
with $setType (as described in the lexer docs)
Cheers,
Ric
--
-----+++++*****************************************************+++++++++-------
---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722 ----
-----+++++*****************************************************+++++++++-------
Chaos often breeds life, when order breeds habit.
--- Henry B. Adams, The Education of Henry Adams
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list