| Related articles |
|---|
| Syntax Tree. gilzhaiek@hotmail.com (Gil Zhaiek) (2000-11-05) |
| From: | "Gil Zhaiek" <gilzhaiek@hotmail.com> |
| Newsgroups: | comp.compilers |
| Date: | 5 Nov 2000 21:02:14 -0500 |
| Organization: | Frotier GlobalCenter Inc. |
| Keywords: | yacc, parse |
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?
-
_______________________________
Gil Zhaiek
gilzhaiek@hotmail.com
[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
comp.compilers page.
Search the
comp.compilers archives again.