Re: HELP: Using an abstract syntax tree for semantic checking

"N. D. Culver" <ndc@alum.mit.edu>
7 May 1998 17:08:14 -0400

          From comp.compilers

Related articles
HELP: Using an abstract syntax tree for semantic checking nealh@dinigroup.com (Neal Harder) (1998-05-04)
Re: HELP: Using an abstract syntax tree for semantic checking chase@naturalbridge.com (David Chase) (1998-05-07)
Re: HELP: Using an abstract syntax tree for semantic checking dwight@pentasoft.com (1998-05-07)
Re: HELP: Using an abstract syntax tree for semantic checking rod.bates@wichita.boeing.com (Rodney M. Bates) (1998-05-07)
Re: HELP: Using an abstract syntax tree for semantic checking thetick@magelang.com (1998-05-07)
Re: HELP: Using an abstract syntax tree for semantic checking donham@linex.com (Jake Donham) (1998-05-07)
Re: HELP: Using an abstract syntax tree for semantic checking ndc@alum.mit.edu (N. D. Culver) (1998-05-07)
Re: HELP: Using an abstract syntax tree for semantic checking adrian@dcs.rhbnc.ac.uk (1998-05-07)
Re: HELP: Using an abstract syntax tree for semantic checking danwang+news@CS.Princeton.EDU (Daniel C. Wang) (1998-05-12)
Re: HELP: Using an abstract syntax tree for semantic checking cfc@world.std.com (Chris F Clark) (1998-05-12)
| List of all articles for this month |
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
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.