CSCI 310 Spring 2005, Day 16
- Administrivia
- gary leaves town Wed. night, gone until Sunday. demo
target monday.
- "class" not a valid token name for use in productions.
- Questions on project 3, hw 2?
- Abstract Syntax Trees
- [insert prayer that cygwin works on 223 machine] let's
look at the parse tree for the simple 3.30 grammar.
- What parts of the tree nodes are actually necessary to
keep around? (e.g. if I know it's a while node, do I need
to keep the while token?) Are there aspects of the parse
tree that were necessary for parsing but not necessary
afterwards?
- An abstract syntax tree is an abstract representation
of the parsed program, free of the unnecessary pieces of
syntax and grammar structures. It provides a clean
interface to think about semantic issues.
- grammar
3.30 can be simplifed a bit and serves to show how
we can convert concrete parse trees to ASTs in sable.
Gary Lewandowski
Last modified: Sun Feb 20 23:29:33 EST 2005