>Any thoughts on using a tool like lex/yacc / flex/bison for parser
>generation?

After some research around, I landed on re2c (http://re2c.sourceforge.net)
which is reported to create faster lexical scanners than lex. It uses a
different approach and creates a lexical scanner that has no library
dependencies (as the fl library for flex).

The scanner in the ABCp library (http://www.dentato.com/abcp) has very
simple rules like:

    [z] (D | [/])*       { RETURN(s,T_REST); }

that, as you might have guessed, matches a rest. The syntax for regular
expressions is a little bit different from similar regex implementation but
once you get used to it it's a breeze!

I found the logical model of re2c much much more simple than lex!

RD




To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html

Reply via email to