From: | "N. D. Culver" <ndc@alum.mit.edu> |
Newsgroups: | comp.compilers |
Date: | 7 May 1998 17:08:14 -0400 |
Organization: | Atlantic Biomedical Engineering |
References: | 98-05-004 |
Keywords: | analysis, practice |
> Is it worth my time to construct a true abstract syntax
> tree rather than a parse tree?
Yes, you will find that the AST is much easier to deal with in a
multi-pass environment.
You should also build a visual tool which will allow you to pump some
code through the parser and view the AST which is generated. Semantic
checking involves looking at a pattern
(e.g. node,right,right,down,right) and it's a real pain to have to
work out the patterns on a piece of paper.
ndc
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.