CS450 Compiler Design
1) Syntax Analysis --> AST
Program
LetCommand
SequentialDeclaration
n
Integer c Char
c ‘&’ n
n + 1
Ident
Ident
Ident
Ident
Ident
Ident
Ident
Op
Char.Lit
Int.Lit
SimpleT
VarDecl
SimpleT
VarDecl
SimpleV
Char.Expr
SimpleV
VNameExp



Int.Expr
AssignCommand
BinaryExpr
SequentialCommand








AssignCommand


