Niels Hald Pedersen wrote:

> > The fastest way to read textual data is to write your own scanner
> > using lex/flex, and to ensure that it doesn't need to back-up (see the
> > flex info file for what backing-up is and how to avoid it).
> 
> Just adding that it may (or may not) be a good idea to use lex/flex in
> combination with bison/yacc, doing the high level parsing with the
> latter.

For parsing more complex formats, yacc is (IMHO) the way to go. 

However, in this particular case, the input format has a flat (i.e. 
non-recursive) syntax, so I think that using yacc would be overkill.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to