Monday, January 21, 2008

Quex for MAC

It requires only python to install Quex 0.14.2 for mac. Quex is a lexical analyzer generator that produces a directly coded lexical analyzer engine. Those engines are much faster than the table driven engines of the lex/flex family.For convinience, quex parses regular expressions in the traditional lex/flex style. This way switching from flex to quex is made very easy. In addition to the fast analyzer engine, quex provides many advanced features, such a 'lexer modes' that can be inherited and that provide events for mode transitions.

Mode transitions can be allowed and disallowed, one can trigger on indentation events, and many parts of the generated lexical analyzer class can be adorned with own code.

For easier handling of token sequences a fast token queue is implemented that allows to implement lexical analysis directly from sequence diagrams. Also, quex is based on a dedicated buffer handling strategy that is webbed into the lexical analyzer to provide optimal performance.

Quex will generate a complete C++ environment containing the lexical analyser engine, token classes and token queues. With the provided sample applications and documentation it should be possible to get a lexical analyser running within a couple of hours.In essence, quex allows complicated lexical analysis to be described very elegantly. At the same time, simple applications can be written much faster than with traditional lexical analyser generators.

2 comments:

Swaminathan said...

nice post. ur blog is too good to speak about. there are so much of info and facts and my two eyes are not enough to read it. continue and keep going..

DAN said...

nice blog..i have linked you... can u do the same...
http://danszone.blogspot.com

ss_blog_claim=c13f76186cf2adb148e987e774eb9d5f ss_blog_claim=c13f76186cf2adb148e987e774eb9d5f