YooLex (yet-another OO Lex)

Heng Yuan <heng@Ag.arizona.edu>
23 Oct 2001 20:26:25 -0400

          From comp.compilers

Related articles
YooLex (yet-another OO Lex) heng@Ag.arizona.edu (Heng Yuan) (2001-10-23)
| List of all articles for this month |

From: Heng Yuan <heng@Ag.arizona.edu>
Newsgroups: comp.compilers
Date: 23 Oct 2001 20:26:25 -0400
Organization: The University of Arizona
Keywords: lex, OOP
Posted-Date: 23 Oct 2001 20:26:25 EDT

Hi,


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


http://yoolex.sourceforge.net/


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.


Heng Yuan
heng@ag.arizona.edu
http://ag.arizona.edu/~heng/


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.