[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bison tutorial: contribution to mfcalc.y

From: Hans Aberg
Subject: Re: bison tutorial: contribution to mfcalc.y
Date: Fri, 11 Jul 2003 15:41:01 +0200

At 09:21 +0200 2003/07/10, graf hans-rudolf wrote:
>I have something useful to add to the bison tutorial example
>"mfcalc". It is a scanner description for flex, which shows how
>to replace the manually written scanner from the tutorial with
>a generated one.
>For me, just learning how to use "yacc and lex", it would have
>been useful to have this simple example to get the "full picture".
>I wrote it for personal study and think it could be useful for
>others too, so I would like to contribute it.

I think too, such an example might be good to help newbies. -- I saw that
your example uses the style, which I think is better, where the lexer and
the parser shares a header rather than the old traditional style in books
like the one by Aho et al, where the lexer sources are included directly
from the parser sources.

Akim can probably tell you how to get it into the manual.

  Hans Aberg

reply via email to

[Prev in Thread] Current Thread [Next in Thread]