3.1 - 3.4

This is my interpretation of the first four sections of chapter 3. It is most definatly not fully tested, error detection and correction is non-existant and it is poorly documented.

It does, however, illustrate the concepts from these sections.


The flex example (somewhat) from the book.

I modified the book's example to match my structure. Ie it uses my tokens and symbol table. I'm not quite following the FLEX/LEX philosophy since I am using yylval to return the entire token, not just the property. I do this because I have the token type overloded and I didn't want to have to write more code.

There was a tiny change in token.h (IF=1) to fit into the EOF scheme for flex. The Makefile was altered as well.