From: Andrew Bray (acb@madhouse.demon.co.uk)
Date: 04/15/93


From: acb@madhouse.demon.co.uk (Andrew Bray)
Subject: Re: flex vs. lex
Date: Thu, 15 Apr 1993 14:31:21 +0000

TITLE: Re: flex/lex

In article <FOX.93Apr14180748@graphics.nyu.edu> fox@graphics.cs.nyu.edu (David Fox) w
rites:
>
> You won't find a more "decent" lex package than flex. yyless is a
> macro in the flex output. How this leads to a solution of the
> problem of undefined yyless symbol is left as an exercise to the
> reader.

I have had some serious problems porting some code to flex - mostly due
to the code being very poor.

The code assumed that lex copied matched strings to a buffer, and did
things like edit the buffer in situ, use yyless to insert extra
characters into the stream, and all sorts of nasties.

For gruesome things like this, I would really appreciate the
availability of a more compatible lex package, though where it worked, I
would use flex - it's so much faster.

Regards,

Andrew Bray