Re: Why the lexer?

"Mark Hahn" <[email protected]> Wed, 7 Apr 2004 19:01:46 -0700
Newsgroups gmane.comp.lang.prothon.devel
Message-ID <[email protected]>
>  It was written using yacc/bison, because that's what someone knew how to
use.

Actually you give me too much credit.  I didn't know how to use any of them.
Bison was just the first one I found using Google and it looked pretty cool.

As far as writing the lexer by hand, it didn't exactly seem like rocket
science.

Anyway, it's history now and it works fine.  I really like Bison.

"Ben Collins" <[email protected]> wrote in message
news:[email protected]...
> On Wed, Apr 07, 2004 at 07:12:37PM -0300, Kenny MacDermid wrote:
> > Just curious as to why a hand-written lexer was choosen over a
> > simple lex/flex one?
>
> This is sort of a loaded question, don't you think? It was written using
> yacc/bison, because that's what someone knew how to use. If you think
> flex would be better, reimplement it using flex and we'll review it.
>
> -- 
> Debian     - http://www.debian.org/
> Linux 1394 - http://www.linux1394.org/
> Subversion - http://subversion.tigris.org/
> WatchGuard - http://www.watchguard.com/
>