in reply to In search of grammars for parsing

ParseLex is a lexical parser along the lines of Lex and may be a good starting point. On the other hand, instructions are in French.

A grammar of flex is in the flex package itself. Check out parse.y in the top directory.

-Mark