[antlr-interest] lexer help

mzukowski at yci.com mzukowski at yci.com
Fri May 2 13:56:17 PDT 2003


If you can reduce your problem to just adding new literals to the literals
table, then you could build the lexer with antlr easily and just modify that
hash table.  If you need something more than that you will probably be
better off building it by hand or using a regular expression library.

Monty

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam at yahoo.com]
Sent: Friday, May 02, 2003 1:53 PM
To: Antlr List
Subject: [antlr-interest] lexer help


I want to build a Lexer with configurable token text;
that is, I won't know until runtime what character(s)
indicate X token (This is for working with EDI). 
Would I be better off building this by hand, or can it
be easily done with ANTLR?  I would like to be able to
match numerals with signs and decimals (I must assume
that the configurable tokens won't be these).

Or, should I build the lexer with ANTLR--once, and
then modify it?

-Matt

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

 

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


 

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




More information about the antlr-interest mailing list