-
Notifications
You must be signed in to change notification settings - Fork 6
A3 Notes
Peter McCormick edited this page Feb 12, 2014
·
1 revision
-
nonterminal
variableneeds Readable for use ininputs- solution: expn.VarRefExpn
-
inputs -- should have been
variablename, notvariable -
IdentExpn, and SubsExpn, need a common ancesstor that
implements Readable -
remove MultiDeclaration
- MultiDeclarations -> VarDeclarations
- Declaration was only dealing with "name and type", which didn't fit multiple variable declarations or procedures
-
AST nodes are immutable: set permanently at construction time
-
Add ForwardRoutine, ForwardRoutineDecl
-
RoutinePrototype (procedure vs function, return type, parameter list of name & types)
-
fix nonterminal 'Program' to be of type 'Program'