[prog] lex and yacc

Sue Stones suzo at spin.net.au
Fri Jan 23 01:09:48 EST 2004


On Thu, 22 Jan 2004 09:55 pm, Diggy Bell wrote:
> Hey Sue,
>
> I don't have much to offer you in terms of experience with lex/yacc, but I
> do just happen to have the O'Reilly book sitting on my shelf.  If you don't
> have it already, you mgiht want to consider adding that one.

Yes I am using that book, and still feeling somewhat befuddled after a few
days.  Which probably says a fair bit about my state of mind.  Concentration
is not really happening!  Sorry I should have said that in my original post.
the fact that the first example is anlaysing English sentences is adding to
the confusion, because I can't see how that generalises to programming
languages.

The Howto was usefull in trying to get started, and I am rereading it again
 in the hope that it will fall into place.

I did succeed in writting a lex prgram a couple of months ago, but then I had
uni pressures so it got put aside.  But that was just an exercise to write
something in lex, not to relate it to yacc.  I guess the biggest block to my
understanding is what to get lex to output, and what yacc does with it.

sue



More information about the Programming mailing list