|YooLex (yet-another OO Lex) heng@Ag.arizona.edu (Heng Yuan) (2001-10-23)|
|From:||Heng Yuan <heng@Ag.arizona.edu>|
|Date:||23 Oct 2001 20:26:25 -0400|
|Organization:||The University of Arizona|
|Posted-Date:||23 Oct 2001 20:26:25 EDT|
I wrote a lexical scanner code generater called YooLex (Yet-another
Object-oriented Lexical tool). The program takes Flex like input (I
used Flex's grammar to parse the input file.). It does not have all
the features of Flex, but it support many of it, including bol,
trailing context (must have either fixed head or trail length), nest
conditions (inclusive and exclusive) and EOF. The limitations are no
compression algorithms, s...l...o...w compile speed, and no DFA states
elimination (so about 5-10% more states than Flex). About why you
should take look into this program though, is that it generates C++
scanner classes that may have multiple instances at the run time.
The project homepage is at
license template is BSD, so basically free. A sample lexer code and
generated codes are provided.
I wrote this program as part of learning various aspect of compilers. So
definitely your advises and feedbacks are very welcome.
Return to the
Search the comp.compilers archives again.