Mail Archives: djgpp/2000/04/25/12:42:26
Liam wrote:
>I'm interested in writing a simple preprocessor/assembler for experience
>using bison and flex but find it difficult to get them behaving
>correctly. I was wondering if there are any examples of simple
>bison/flex code available? Ones that could easily be understood that say
>just implement a few rules.
You might have already looked at the bison manual. If yes, you can
as well ignore my answer.
I implemented a small interpreted language without prior yacc/bison
knowledge. I found the tutorial sections of the bison manual extremely
helpful. The examples are IHMO very well explained (or were at least some
versions ago). I think the bison manual is one of the nicest pieces of
documentation I have seen of all GNU tools. You might want to print
it out, or look at it with "info bison".
--
Regards, Dieter
- Raw text -