|Syntax Tree. email@example.com (Gil Zhaiek) (2000-11-05)|
|From:||"Gil Zhaiek" <firstname.lastname@example.org>|
|Date:||5 Nov 2000 21:02:14 -0500|
|Organization:||Frotier GlobalCenter Inc.|
Anyone knows how to create a syntax tree in Yacc?
Anyone can direct me to a compile code for C or a small scale of C?
[There's no magic to making a parse tree -- each rule needs to create a
node and pass it back as its value, so the tree gets built from the botto
up. It's kid of tedious but not hard. See the FAQ for C compilers; you
should look at lcc which is smaller and easier to follow than gcc. -John}
Return to the
Search the comp.compilers archives again.