Package bcg.ast

Interface Summary
Visitor Interface for walking AST trees.
 

Class Summary
AbstractVisitor Helper class to simplify writing AST visitors.
Assignment Assign an expression to a variable
BinaryOperator Represents all the binary mathmatical operators.
Block A series of statements to execute sequentially.
Builder Builds an AST from a parse tree.
BuiltIn Call to a builtin such as print.
Chained Chained comparisons.
ChainedString Chained string comparisons.
Environment A nested set of variables.
Expression Base class for expressions.
FunctionCall  
If An if statement
Indexed  
Literal Represents a numerical literal
Literal.Array  
Literal.Bool  
Literal.Int  
Literal.Str  
Node A node in an Abstract Syntax Tree for a bcg program.
Printer Pretty-prints a parse tree.
Program A full bcg program.
Statement Base class for all top level statements.
Subroutine A subroutine in a bcg program.
SubroutineCall  
UnaryOperator Represents all the unary mathmatical operators.
Variable Represents a variable in the program.
While Represents a while loop.
 

Enum Summary
BinaryOperator.BinOp  
BuiltIn.BIn Enum for the different builtins.
Type The type of an expression.
UnaryOperator.UnOp  
 

Exception Summary
 



Written by Brian Gernhardt for Compiler Construction at RIT, Winter 2010