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.

Comments (2)

Leave a comment

Your email address will not be published. Required fields are marked *