A B C D E F G H I J L M N O P R S T U V W Z _

A

A1 - Static variable in class codeGeneration.CgenSupport
 
AbstractBinaryOperation - Class in treeNodes
This class is used to join the common code of all binary operations.
AbstractBinaryOperation(int, AbstractExpression, AbstractExpression) - Constructor for class treeNodes.AbstractBinaryOperation
 
AbstractDispatch - Class in treeNodes
This class is used to join the common code the two dispatch classes.
AbstractDispatch(int, AbstractExpression, AbstractSymbol, ListNode<AbstractExpression>) - Constructor for class treeNodes.AbstractDispatch
 
AbstractExpression - Class in treeNodes
Defines simple phylum AbstractExpression
AbstractExpression(int) - Constructor for class treeNodes.AbstractExpression
 
AbstractFeature - Class in treeNodes
Defines simple phylum AbstractFeature
AbstractFeature(int) - Constructor for class treeNodes.AbstractFeature
 
AbstractSymbol - Class in symbolHandling
String table entry There are three kinds of string table entries: a true string, a string representation of an identifier, and a string representation of an integer.
AbstractSymbol(String, int, int) - Constructor for class symbolHandling.AbstractSymbol
Constructs a new table entry.
AbstractTable<T extends AbstractSymbol> - Class in symbolHandling
Abstract string table implementation.
AbstractTable() - Constructor for class symbolHandling.AbstractTable
 
AbstractUnaryOperation - Class in treeNodes
This class is used to join the common code of all unary operations.
AbstractUnaryOperation(int, AbstractExpression) - Constructor for class treeNodes.AbstractUnaryOperation
 
ACC - Static variable in class codeGeneration.CgenSupport
 
action_obj - Variable in class astLexerAndParser.ASTSolutionParser
Instance of action encapsulation class.
action_obj - Variable in class astLexerAndParser.ASTStudentParser
Instance of action encapsulation class.
action_obj - Variable in class parser.CoolParser
Instance of action encapsulation class.
action_obj - Variable in class parser.CoolParserSolution
Instance of action encapsulation class.
action_obj - Variable in class parser.CoolParserSolutionStudent
Instance of action encapsulation class.
action_table() - Method in class astLexerAndParser.ASTSolutionParser
Access to parse-action table.
action_table() - Method in class astLexerAndParser.ASTStudentParser
Access to parse-action table.
action_table() - Method in class parser.CoolParser
Access to parse-action table.
action_table() - Method in class parser.CoolParserSolution
Access to parse-action table.
action_table() - Method in class parser.CoolParserSolutionStudent
Access to parse-action table.
actual - Variable in class treeNodes.AbstractDispatch
 
ADD - Static variable in class codeGeneration.CgenSupport
 
addChild(CgenNode) - Method in class codeGeneration.CgenNode
 
ADDI - Static variable in class codeGeneration.CgenSupport
 
addId(AbstractSymbol, T) - Method in class symbolHandling.SymbolTable
Adds a new entry to the symbol table.
addInt(int) - Method in class symbolHandling.AbstractTable
Adds the string representation of the specified integer to this string table
ADDIU - Static variable in class codeGeneration.CgenSupport
 
addString(String, int) - Method in class symbolHandling.AbstractTable
Adds prefix of the specified length to this string table
addString(String) - Method in class symbolHandling.AbstractTable
Adds the specified string to this string table
ADDU - Static variable in class codeGeneration.CgenSupport
 
ALIGN - Static variable in class codeGeneration.CgenSupport
 
appendElement(T) - Method in class generalHelpers.ListNode
Appends an element to the list.
arg - Static variable in class generalHelpers.TreeConstants
 
arg2 - Static variable in class generalHelpers.TreeConstants
 
asciiMode(PrintWriter) - Static method in class codeGeneration.CgenSupport
Switch output mode to ASCII.
ASSIGN - Static variable in class astLexerAndParser.ASTConstants
 
ASSIGN - Static variable in class parser.Sym
 
ASSIGN - Static variable in class parser.TokenConstants
 
Assign - Class in treeNodes
Defines AST constructor 'assign'.
Assign(int, AbstractSymbol, AbstractExpression) - Constructor for class treeNodes.Assign
Creates "assign" AST node.
ASTConstants - Class in astLexerAndParser
CUP generated class containing symbol constants.
ASTConstants() - Constructor for class astLexerAndParser.ASTConstants
 
ASTLexer - Class in astLexerAndParser
 
ASTLexer(Reader) - Constructor for class astLexerAndParser.ASTLexer
 
astLexerAndParser - package astLexerAndParser
 
ASTSolutionParser - Class in astLexerAndParser
CUP v0.10j generated parser.
ASTSolutionParser() - Constructor for class astLexerAndParser.ASTSolutionParser
Default constructor.
ASTSolutionParser(Scanner) - Constructor for class astLexerAndParser.ASTSolutionParser
Constructor which sets the default scanner.
ASTStudentParser - Class in astLexerAndParser
CUP v0.10j generated parser.
ASTStudentParser() - Constructor for class astLexerAndParser.ASTStudentParser
Default constructor.
ASTStudentParser(Scanner) - Constructor for class astLexerAndParser.ASTStudentParser
Constructor which sets the default scanner.
ASTTest - Class in astLexerAndParser
The parser driver class
ASTTest() - Constructor for class astLexerAndParser.ASTTest
 
AT - Static variable in class parser.Sym
 
AT - Static variable in class parser.TokenConstants
 
ATTR - Static variable in class astLexerAndParser.ASTConstants
 
Attribute - Class in treeNodes
Defines AST constructor 'attr'.
Attribute(int, AbstractSymbol, AbstractSymbol, AbstractExpression) - Constructor for class treeNodes.Attribute
Creates "attr" AST node.

B

basic() - Method in class codeGeneration.CgenNode
Returns true is this is a basic class.
BEQ - Static variable in class codeGeneration.CgenSupport
 
BEQZ - Static variable in class codeGeneration.CgenSupport
 
BGT - Static variable in class codeGeneration.CgenSupport
 
BLEQ - Static variable in class codeGeneration.CgenSupport
 
BLOCK - Static variable in class astLexerAndParser.ASTConstants
 
Block - Class in treeNodes
Defines AST constructor 'block'.
Block(int, ListNode<AbstractExpression>) - Constructor for class treeNodes.Block
Creates "block" AST node.
BLT - Static variable in class codeGeneration.CgenSupport
 
BNE - Static variable in class codeGeneration.CgenSupport
 
body - Variable in class treeNodes.Block
 
body - Variable in class treeNodes.Let
 
body - Variable in class treeNodes.Loop
 
BOOL - Static variable in class astLexerAndParser.ASTConstants
 
Bool - Static variable in class generalHelpers.TreeConstants
 
BOOL_CONST - Static variable in class parser.Sym
 
BOOL_CONST - Static variable in class parser.TokenConstants
 
BOOL_SLOTS - Static variable in class codeGeneration.CgenSupport
 
BoolConst - Class in symbolHandling
This clas encapsulates all aspects of code generation for boolean constants.
BoolConst(boolean) - Constructor for class symbolHandling.BoolConst
Creates a new boolean constant.
BoolConst(Boolean) - Constructor for class symbolHandling.BoolConst
Creates a new boolean constant.
BOOLCONST_PREFIX - Static variable in class codeGeneration.CgenSupport
 
BoolConstant - Class in treeNodes
Defines AST constructor 'bool_const'.
BoolConstant(int, Boolean) - Constructor for class treeNodes.BoolConstant
Creates "bool_const" AST node.
BOOLTAG - Static variable in class codeGeneration.CgenSupport
 
BRANCH - Static variable in class astLexerAndParser.ASTConstants
 
BRANCH - Static variable in class codeGeneration.CgenSupport
 
Branch - Class in treeNodes
Defines AST constructor 'branch'.
Branch(int, AbstractSymbol, AbstractSymbol, AbstractExpression) - Constructor for class treeNodes.Branch
Creates "branch" AST node.
byteMode(PrintWriter) - Static method in class codeGeneration.CgenSupport
Switch output mode to BYTE

C

CASE - Static variable in class parser.Sym
 
CASE - Static variable in class parser.TokenConstants
 
CaseExpression - Class in treeNodes
Defines AST constructor 'typcase'.
CaseExpression(int, AbstractExpression, ListNode<Branch>) - Constructor for class treeNodes.CaseExpression
Creates "typcase" AST node.
cases - Variable in class treeNodes.CaseExpression
 
Cgen - Class in codeGeneration
Static semantics driver class
Cgen() - Constructor for class codeGeneration.Cgen
 
cgen(PrintWriter) - Method in class treeNodes.Program
This is the entry method for the code generation.
cgen_debug - Static variable in class generalHelpers.Flags
Enable code gen debugging
cgen_Memmgr - Static variable in class generalHelpers.Flags
Garbage collector flag (default GC_NOGC)
cgen_Memmgr_Debug - Static variable in class generalHelpers.Flags
Garbage collector debugging flag (default GC_QUICK)
cgen_Memmgr_Test - Static variable in class generalHelpers.Flags
Garbage collector testing flag (default GC_NORMAL)
cgen_optimize - Static variable in class generalHelpers.Flags
Code optimization flag
CgenClassTable - Class in codeGeneration
This class is used for representing the inheritance tree during code generation.
CgenClassTable(ListNode<Class_>, PrintWriter) - Constructor for class codeGeneration.CgenClassTable
Constructs a new class table and invokes the code generator
CgenNode - Class in codeGeneration
 
CgenNode(Class_, int, CgenClassTable) - Constructor for class codeGeneration.CgenNode
Constructs a new CgenNode to represent class "c".
CgenSupport - Class in codeGeneration
This class aggregates all kinds of support routines and constants for the code generator; all routines are statics, so no instance of this class is even created.
CgenSupport() - Constructor for class codeGeneration.CgenSupport
 
CLASS - Static variable in class astLexerAndParser.ASTConstants
 
CLASS - Static variable in class parser.Sym
 
CLASS - Static variable in class parser.TokenConstants
 
Class_ - Class in treeNodes
Defines AST constructor 'class_'.
Class_(int, AbstractSymbol, AbstractSymbol, ListNode<AbstractFeature>, AbstractSymbol) - Constructor for class treeNodes.Class_
Creates "class_" AST node.
classes - Variable in class treeNodes.Program
 
CLASSINIT_SUFFIX - Static variable in class codeGeneration.CgenSupport
 
CLASSNAMETAB - Static variable in class codeGeneration.CgenSupport
 
CLASSOBJTAB - Static variable in class codeGeneration.CgenSupport
 
ClassTable - Class in semanticAnalyzer
This class may be used to contain the semantic information such as the inheritance graph.
ClassTable(ListNode<Class_>) - Constructor for class semanticAnalyzer.ClassTable
 
cleanup() - Static method in class parser.DynamicParserFactory
 
clone() - Method in class symbolHandling.AbstractSymbol
Returns a copy of this symbol
clone() - Method in class symbolHandling.IntSymbol
Returns a copy of this symbol
clone() - Method in class symbolHandling.StringSymbol
Returns a copy of this symbol
code() - Method in class codeGeneration.CgenClassTable
This Method is the meat of the code generator.
codeDef(int, PrintWriter) - Method in class symbolHandling.BoolConst
Generates code for the boolean constant definition.
codeDef(int, PrintWriter) - Method in class symbolHandling.IntSymbol
Generates code for the integer constant definition.
codeDef(int, PrintWriter) - Method in class symbolHandling.StringSymbol
Generates code for the string constant definition.
codeGeneration - package codeGeneration
 
codeRef(PrintWriter) - Method in class symbolHandling.BoolConst
Emits a reference to this boolean constant.
codeRef(PrintWriter) - Method in class symbolHandling.IntSymbol
Emits a reference to this integer constant.
codeRef(PrintWriter) - Method in class symbolHandling.StringSymbol
Emits a reference to this string constant.
codeStringTable(int, PrintWriter) - Method in class symbolHandling.IntTable
Generates code for all int constants in the int table.
codeStringTable(int, PrintWriter) - Method in class symbolHandling.StringTable
Generates code for all string constants in the string table.
COLON - Static variable in class astLexerAndParser.ASTConstants
 
COLON - Static variable in class parser.Sym
 
COLON - Static variable in class parser.TokenConstants
 
COMMA - Static variable in class parser.Sym
 
COMMA - Static variable in class parser.TokenConstants
 
COMP - Static variable in class astLexerAndParser.ASTConstants
 
Complement - Class in treeNodes
Defines AST constructor 'comp'.
Complement(int, AbstractExpression) - Constructor for class treeNodes.Complement
Creates "comp" AST node.
concat - Static variable in class generalHelpers.TreeConstants
 
COND - Static variable in class astLexerAndParser.ASTConstants
 
Conditional - Class in treeNodes
Defines AST constructor 'cond'.
Conditional(int, AbstractExpression, AbstractExpression, AbstractExpression) - Constructor for class treeNodes.Conditional
Creates "cond" AST node.
cool_abort - Static variable in class generalHelpers.TreeConstants
 
CoolParser - Class in parser
CUP v0.10k generated parser.
CoolParser() - Constructor for class parser.CoolParser
Default constructor.
CoolParser(Scanner) - Constructor for class parser.CoolParser
Constructor which sets the default scanner.
CoolParserSolution - Class in parser
CUP v0.10j generated parser.
CoolParserSolution() - Constructor for class parser.CoolParserSolution
Default constructor.
CoolParserSolution(Scanner) - Constructor for class parser.CoolParserSolution
Constructor which sets the default scanner.
CoolParserSolutionStudent - Class in parser
CUP v0.10j generated parser.
CoolParserSolutionStudent() - Constructor for class parser.CoolParserSolutionStudent
Default constructor.
CoolParserSolutionStudent(Scanner) - Constructor for class parser.CoolParserSolutionStudent
Constructor which sets the default scanner.
CoolTokenLexer - Class in astLexerAndParser
 
CoolTokenLexer(Reader) - Constructor for class astLexerAndParser.CoolTokenLexer
 
CoolTokenLexer(InputStream) - Constructor for class astLexerAndParser.CoolTokenLexer
 
copy() - Method in class generalHelpers.ListNode
no type-safety provided by the copy-method
copy - Static variable in class generalHelpers.TreeConstants
 
copy() - Method in class generalHelpers.TreeNode
Creates a copy of this node.
copy() - Method in class treeNodes.Assign
 
copy() - Method in class treeNodes.Attribute
 
copy() - Method in class treeNodes.Block
 
copy() - Method in class treeNodes.BoolConstant
 
copy() - Method in class treeNodes.Branch
 
copy() - Method in class treeNodes.CaseExpression
 
copy() - Method in class treeNodes.Class_
 
copy() - Method in class treeNodes.Complement
 
copy() - Method in class treeNodes.Conditional
 
copy() - Method in class treeNodes.Dispatch
 
copy() - Method in class treeNodes.Divide
 
copy() - Method in class treeNodes.Eq
 
copy() - Method in class treeNodes.Formal
 
copy() - Method in class treeNodes.IntegerConstant
 
copy() - Method in class treeNodes.IsVoid
 
copy() - Method in class treeNodes.Leq
 
copy() - Method in class treeNodes.Let
 
copy() - Method in class treeNodes.Loop
 
copy() - Method in class treeNodes.Lt
 
copy() - Method in class treeNodes.Method
 
copy() - Method in class treeNodes.Mul
 
copy() - Method in class treeNodes.Negate
 
copy() - Method in class treeNodes.New_
 
copy() - Method in class treeNodes.NoExpression
 
copy() - Method in class treeNodes.Object_
 
copy() - Method in class treeNodes.Plus
 
copy() - Method in class treeNodes.Program
 
copy() - Method in class treeNodes.StaticDispatch
 
copy() - Method in class treeNodes.StringConstant
 
copy() - Method in class treeNodes.Sub
 
copyAbstractSymbol(AbstractSymbol) - Method in class generalHelpers.TreeNode
Copies an AbstractSymbol value.
copyBoolean(Boolean) - Method in class generalHelpers.TreeNode
Copies a boolean value.
copyElements() - Method in class generalHelpers.ListNode
Creates a deep copy of this list.
curr_filename() - Method in class astLexerAndParser.CoolTokenLexer
 
curr_filename() - Method in class lexer.SolutionCoolLexer
 
curr_lineno() - Method in class astLexerAndParser.CoolTokenLexer
 
curr_lineno() - Method in interface lexer.MyLexer
 
curr_lineno() - Method in class lexer.SolutionCoolLexer
 

D

DARROW - Static variable in class parser.Sym
 
DARROW - Static variable in class parser.TokenConstants
 
debug_parse() - Method in class parser.DynamicParserFactory
 
debug_parse() - Method in interface parser.ParserFactory
 
debug_parse() - Method in class parser.SolutionParserFactory
 
debug_parse() - Method in class parser.SolutionStudentParserFactory
 
debug_parse() - Method in class parser.StudentParserFactory
 
DEFAULT_OBJFIELDS - Static variable in class codeGeneration.CgenSupport
 
DISPATCH - Static variable in class astLexerAndParser.ASTConstants
 
Dispatch - Class in treeNodes
Defines AST constructor 'dispatch'.
Dispatch(int, AbstractExpression, AbstractSymbol, ListNode<AbstractExpression>) - Constructor for class treeNodes.Dispatch
Creates "dispatch" AST node.
DISPTAB_SUFFIX - Static variable in class codeGeneration.CgenSupport
 
DISPTABLE_OFFSET - Static variable in class codeGeneration.CgenSupport
 
DIV - Static variable in class codeGeneration.CgenSupport
 
DIV - Static variable in class parser.Sym
 
DIV - Static variable in class parser.TokenConstants
 
DIVIDE - Static variable in class astLexerAndParser.ASTConstants
 
Divide - Class in treeNodes
Defines AST constructor 'divide'.
Divide(int, AbstractExpression, AbstractExpression) - Constructor for class treeNodes.Divide
Creates "divide" AST node.
do_action(int, lr_parser, Stack, int) - Method in class astLexerAndParser.ASTSolutionParser
Invoke a user supplied parse action.
do_action(int, lr_parser, Stack, int) - Method in class astLexerAndParser.ASTStudentParser
Invoke a user supplied parse action.
do_action(int, lr_parser, Stack, int) - Method in class parser.CoolParser
Invoke a user supplied parse action.
do_action(int, lr_parser, Stack, int) - Method in class parser.CoolParserSolution
Invoke a user supplied parse action.
do_action(int, lr_parser, Stack, int) - Method in class parser.CoolParserSolutionStudent
Invoke a user supplied parse action.
DOT - Static variable in class parser.Sym
 
DOT - Static variable in class parser.TokenConstants
 
dump(Writer, int) - Method in class generalHelpers.ListNode
Pretty-prints this list to this output stream.
dump(Writer, int) - Method in class generalHelpers.TreeNode
Pretty-prints this node to this output stream.
dump(Writer, int) - Method in class treeNodes.AbstractBinaryOperation
 
dump(Writer, int) - Method in class treeNodes.AbstractUnaryOperation
 
dump(Writer, int) - Method in class treeNodes.Assign
 
dump(Writer, int) - Method in class treeNodes.Attribute
 
dump(Writer, int) - Method in class treeNodes.Block
 
dump(Writer, int) - Method in class treeNodes.BoolConstant
 
dump(Writer, int) - Method in class treeNodes.Branch
 
dump(Writer, int) - Method in class treeNodes.CaseExpression
 
dump(Writer, int) - Method in class treeNodes.Class_
 
dump(Writer, int) - Method in class treeNodes.Conditional
 
dump(Writer, int) - Method in class treeNodes.Dispatch
 
dump(Writer, int) - Method in class treeNodes.Formal
 
dump(Writer, int) - Method in class treeNodes.IntegerConstant
 
dump(Writer, int) - Method in class treeNodes.Let
 
dump(Writer, int) - Method in class treeNodes.Loop
 
dump(Writer, int) - Method in class treeNodes.Method
 
dump(Writer, int) - Method in class treeNodes.New_
 
dump(Writer, int) - Method in class treeNodes.NoExpression
 
dump(Writer, int) - Method in class treeNodes.Object_
 
dump(Writer, int) - Method in class treeNodes.Program
 
dump(Writer, int) - Method in class treeNodes.StaticDispatch
 
dump(Writer, int) - Method in class treeNodes.StringConstant
 
dumpAbstractSymbol(Writer, int, AbstractSymbol) - Method in class generalHelpers.TreeNode
Dumps a printable representation of an AbstactSymbol value.
dumpBoolean(Writer, int, Boolean) - Method in class generalHelpers.TreeNode
Dumps a printable representation of a boolean value.
dumpLine(Writer, int) - Method in class generalHelpers.TreeNode
Dumps a printable representation of current line number This method is used internally by the generated AST classes
dumpToken(PrintWriter, int, Symbol) - Static method in class generalHelpers.Utilities
Dumps a token to the specified stream
dumpType(Writer, int) - Method in class treeNodes.AbstractExpression
 
dumpWithTypes(Writer, int) - Method in class treeNodes.AbstractBinaryOperation
 
dumpWithTypes(Writer, int) - Method in class treeNodes.AbstractExpression
 
dumpWithTypes(Writer, int) - Method in class treeNodes.AbstractFeature
 
dumpWithTypes(Writer, int) - Method in class treeNodes.AbstractUnaryOperation
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Assign
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Attribute
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Block
 
dumpWithTypes(Writer, int) - Method in class treeNodes.BoolConstant
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Branch
 
dumpWithTypes(Writer, int) - Method in class treeNodes.CaseExpression
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Class_
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Conditional
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Dispatch
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Formal
 
dumpWithTypes(Writer, int) - Method in class treeNodes.IntegerConstant
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Let
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Loop
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Method
 
dumpWithTypes(Writer, int) - Method in class treeNodes.New_
 
dumpWithTypes(Writer, int) - Method in class treeNodes.NoExpression
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Object_
 
dumpWithTypes(Writer, int) - Method in class treeNodes.Program
 
dumpWithTypes(Writer, int) - Method in class treeNodes.StaticDispatch
 
dumpWithTypes(Writer, int) - Method in class treeNodes.StringConstant
 
DynamicParserFactory - Class in parser
This class takes a filename of a JavaCup-file and creates a Parser from it
DynamicParserFactory(String) - Constructor for class parser.DynamicParserFactory
 

E

e1 - Variable in class treeNodes.AbstractBinaryOperation
 
e1 - Variable in class treeNodes.AbstractUnaryOperation
 
e2 - Variable in class treeNodes.AbstractBinaryOperation
 
ELSE - Static variable in class parser.Sym
 
ELSE - Static variable in class parser.TokenConstants
 
else_exp - Variable in class treeNodes.Conditional
 
emitAdd(String, String, String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits an ADD instruction.
emitAddiu(String, String, int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits an ADDIU instruction.
emitAddu(String, String, String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits an ADDU instruction.
emitBeq(String, String, int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a BEQ instruction.
emitBeqz(String, int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a BEQZ instruction.
emitBgti(String, int, int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a BGTI instruction.
emitBleq(String, String, int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a BLEQ instruction.
emitBlt(String, String, int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a BLT instruction.
emitBlti(String, int, int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a BLTI instruction.
emitBne(String, String, int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a BNE instruction.
emitBranch(int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a BRANCH instruction.
emitDispTableRef(AbstractSymbol, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a reference to dispatch table.
emitDiv(String, String, String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a DIV instruction.
emitFetchInt(String, String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits code to fetch the integer value of the Integer object.
emitGCAssign(PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a call to gc_assign.
emitGCCheck(String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits code to check the garbage collector
emitInitRef(AbstractSymbol, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a reference to class' init() method.
emitJal(String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a JAL instruction.
emitJalr(String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a JALR instruction.
emitLabelDef(int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a definition of a label
emitLabelRef(int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a reference to a label
emitLoad(String, int, String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits an LW instruction.
emitLoadAddress(String, String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits an LA instruction.
emitLoadBool(String, BoolConst, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits an instruction to load a boolean constant into a register.
emitLoadImm(String, int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits the LI instruction.
emitLoadInt(String, IntSymbol, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits an instruction to load an integer constant into a register.
emitLoadString(String, StringSymbol, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits an instruction to load a string constant into a register.
emitMethodRef(AbstractSymbol, AbstractSymbol, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a reference to a method in a class
emitMove(String, String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a MOVE instruction.
emitMul(String, String, String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a MUL instruction.
emitNeg(String, String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a NEG instruction.
emitPartialLoadAddress(String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits an LA instruction without the address part.
emitProtObjRef(AbstractSymbol, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a reference to class' prototype object.
emitPush(String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emit a sequence of instructions to push a register onto stack.
emitReturn(PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a RET instruction.
emitSll(String, String, int, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits an SLL instruction.
emitStore(String, int, String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits an SW instruction.
emitStoreInt(String, String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits code to store the integer value of the Integer object.
emitStringConstant(String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a string constant.
emitSub(String, String, String, PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits a SUB instruction.
emitTestCollector(PrintWriter) - Static method in class codeGeneration.CgenSupport
Emits code to manipulate garbage collector
EMPTYSLOT - Static variable in class codeGeneration.CgenSupport
 
enterScope() - Method in class symbolHandling.SymbolTable
Enters a new scope.
EOF - Static variable in class astLexerAndParser.ASTConstants
 
EOF - Static variable in class parser.Sym
 
EOF - Static variable in class parser.TokenConstants
 
EOF_sym() - Method in class astLexerAndParser.ASTSolutionParser
EOF Symbol index.
EOF_sym() - Method in class astLexerAndParser.ASTStudentParser
EOF Symbol index.
EOF_sym() - Method in class parser.CoolParser
EOF Symbol index.
EOF_sym() - Method in class parser.CoolParserSolution
EOF Symbol index.
EOF_sym() - Method in class parser.CoolParserSolutionStudent
EOF Symbol index.
EQ - Static variable in class astLexerAndParser.ASTConstants
 
EQ - Static variable in class parser.Sym
 
EQ - Static variable in class parser.TokenConstants
 
Eq - Class in treeNodes
Defines AST constructor 'eq'.
Eq(int, AbstractExpression, AbstractExpression) - Constructor for class treeNodes.Eq
Creates "eq" AST node.
equals(Object) - Method in class symbolHandling.AbstractSymbol
Tests if two symbols are equal.
equalsIndex(int) - Method in class symbolHandling.AbstractSymbol
Tests if the index argument is equal to the index of this symbol.
equalString(String, int) - Method in class symbolHandling.AbstractSymbol
Tests if the string argument is equal to the string in this symbol.
error - Static variable in class astLexerAndParser.ASTConstants
 
error - Static variable in class parser.Sym
 
ERROR - Static variable in class parser.Sym
 
error - Static variable in class parser.TokenConstants
 
ERROR - Static variable in class parser.TokenConstants
 
error_sym() - Method in class astLexerAndParser.ASTSolutionParser
error Symbol index.
error_sym() - Method in class astLexerAndParser.ASTStudentParser
error Symbol index.
error_sym() - Method in class parser.CoolParser
error Symbol index.
error_sym() - Method in class parser.CoolParserSolution
error Symbol index.
error_sym() - Method in class parser.CoolParserSolutionStudent
error Symbol index.
errorsDuringParse() - Method in class parser.DynamicParserFactory
 
errorsDuringParse() - Method in interface parser.ParserFactory
After parsing, the return value of this method will be valid.
errorsDuringParse() - Method in class parser.SolutionParserFactory
 
errorsDuringParse() - Method in class parser.SolutionStudentParserFactory
 
errorsDuringParse() - Method in class parser.StudentParserFactory
 
ESAC - Static variable in class parser.Sym
 
ESAC - Static variable in class parser.TokenConstants
 
exitIfErrorsOccured() - Static method in exception semanticAnalyzer.SemanticError
Checks if any errors occured.
exitScope() - Method in class symbolHandling.SymbolTable
Exits the most recently entered scope.
expr - Variable in class treeNodes.AbstractDispatch
 
expr - Variable in class treeNodes.Assign
 
expr - Variable in class treeNodes.Branch
 
expr - Variable in class treeNodes.CaseExpression
 
expr - Variable in class treeNodes.Method
 

F

falsebool - Static variable in class symbolHandling.BoolConst
 
fatalError(Throwable) - Static method in class generalHelpers.Utilities
Prints error message and exits
fatalError(String) - Static method in class generalHelpers.Utilities
 
features - Variable in class treeNodes.Class_
 
FI - Static variable in class parser.Sym
 
FI - Static variable in class parser.TokenConstants
 
filename - Variable in class treeNodes.Class_
 
Flags - Class in generalHelpers
Command line flags
Flags() - Constructor for class generalHelpers.Flags
 
FORMAL - Static variable in class astLexerAndParser.ASTConstants
 
Formal - Class in treeNodes
Defines AST constructor 'formal'.
Formal(int, AbstractSymbol, AbstractSymbol) - Constructor for class treeNodes.Formal
Creates "formal" AST node.
formals - Variable in class treeNodes.Method
 
FP - Static variable in class codeGeneration.CgenSupport
 

G

GC_DEBUG - Static variable in class generalHelpers.Flags
Full GC debugging
GC_GENGC - Static variable in class generalHelpers.Flags
Generational garbage collection
GC_NOGC - Static variable in class generalHelpers.Flags
No garbage collection
GC_NORMAL - Static variable in class generalHelpers.Flags
Normal GC operation
GC_QUICK - Static variable in class generalHelpers.Flags
Quick GC debugging
GC_SNCGC - Static variable in class generalHelpers.Flags
Stop-and-copy garbage collection
GC_TEST - Static variable in class generalHelpers.Flags
Test GC operation
gcCollectNames - Static variable in class codeGeneration.CgenSupport
Runtime constants for controlling the garbage collector.
gcInitNames - Static variable in class codeGeneration.CgenSupport
Runtime constants for controlling the garbage collector.
generalHelpers - package generalHelpers
 
getActuals() - Method in class treeNodes.AbstractDispatch
 
getBody() - Method in class treeNodes.Let
 
getBody() - Method in class treeNodes.Loop
 
getBranches() - Method in class treeNodes.CaseExpression
 
getChildren() - Method in class codeGeneration.CgenNode
Gets the children of this class
getClasses() - Method in class treeNodes.Program
 
getDumpedAST() - Method in class parser.DynamicParserFactory
 
getDumpedAST() - Method in interface parser.ParserFactory
Returns the AST from the parse as dumped into a string.
getDumpedAST() - Method in class parser.SolutionParserFactory
 
getDumpedAST() - Method in class parser.SolutionStudentParserFactory
 
getDumpedAST() - Method in class parser.StudentParserFactory
 
getElseExpression() - Method in class treeNodes.Conditional
 
getExpr() - Method in class treeNodes.AbstractUnaryOperation
 
getExpr() - Method in class treeNodes.Assign
 
getExpr() - Method in class treeNodes.Branch
 
getExpr() - Method in class treeNodes.Method
 
getExpr1() - Method in class treeNodes.AbstractBinaryOperation
 
getExpr2() - Method in class treeNodes.AbstractBinaryOperation
 
getExpression() - Method in class treeNodes.AbstractDispatch
 
getExprs() - Method in class treeNodes.Block
 
getFeatures() - Method in class treeNodes.Class_
 
getFilename() - Method in class treeNodes.Class_
 
getFormals() - Method in class treeNodes.Method
 
getInit() - Method in class treeNodes.Attribute
 
getInit() - Method in class treeNodes.Let
 
getLength() - Method in class generalHelpers.ListNode
Retreives the length of the list.
getLexer(Reader) - Method in interface lexer.LexerFactory
 
getLexer(InputStream) - Method in interface lexer.LexerFactory
 
getLexer(Reader) - Method in class lexer.SolutionLexerFactory
 
getLexer(InputStream) - Method in class lexer.SolutionLexerFactory
 
getLexer(Reader) - Method in class lexer.StudentLexerFactory
 
getLexer(InputStream) - Method in class lexer.StudentLexerFactory
 
getLineNumber() - Method in class generalHelpers.TreeNode
Retreives the line number from which this node came.
getName() - Method in class treeNodes.AbstractFeature
 
getName() - Method in class treeNodes.Class_
 
getName() - Method in class treeNodes.Formal
 
getNewSymbol(String, int, int) - Method in class symbolHandling.AbstractTable
Creates a new symbol of the appropriate type
getNewSymbol(String, int, int) - Method in class symbolHandling.IdTable
Creates a new IdSymbol object.
getNewSymbol(String, int, int) - Method in class symbolHandling.IntTable
Creates a new IntSymbol object.
getNewSymbol(String, int, int) - Method in class symbolHandling.StringTable
Creates a new StringSymbol object.
getParent() - Method in class treeNodes.Class_
 
getParentNd() - Method in class codeGeneration.CgenNode
Gets the parent of this class
getPred() - Method in class treeNodes.Conditional
 
getPred() - Method in class treeNodes.Loop
 
getResultAST() - Method in class parser.DynamicParserFactory
 
getResultAST() - Method in interface parser.ParserFactory
 
getResultAST() - Method in class parser.SolutionParserFactory
 
getResultAST() - Method in class parser.SolutionStudentParserFactory
 
getResultAST() - Method in class parser.StudentParserFactory
 
getString() - Method in class symbolHandling.AbstractSymbol
Returns the string representation of this symbol.
getSymbols() - Method in class symbolHandling.AbstractTable
Returns an enumeration of symbols in this string table
getTag() - Method in class treeNodes.AbstractBinaryOperation
This function is used by the dump-functions to specialize output to the subclass.
getTag() - Method in class treeNodes.AbstractUnaryOperation
This function is used by the dump-functions to specialize output to the subclass
getTag() - Method in class treeNodes.Complement
 
getTag() - Method in class treeNodes.Divide
 
getTag() - Method in class treeNodes.Eq
 
getTag() - Method in class treeNodes.IsVoid
 
getTag() - Method in class treeNodes.Leq
 
getTag() - Method in class treeNodes.Lt
 
getTag() - Method in class treeNodes.Mul
 
getTag() - Method in class treeNodes.Negate
 
getTag() - Method in class treeNodes.Plus
 
getTag() - Method in class treeNodes.Sub
 
getThenExpression() - Method in class treeNodes.Conditional
 
getTokensFromFile(LexerFactory, String) - Static method in class lexer.Lexer
 
getTokensFromFiles(LexerFactory, String[]) - Static method in class lexer.Lexer
 
getType() - Method in class treeNodes.AbstractExpression
 
getType() - Method in class treeNodes.Attribute
 
getTypeDeclaration() - Method in class treeNodes.Formal
 
GLOBAL - Static variable in class codeGeneration.CgenSupport
 

H

handleFlags(String[]) - Static method in class generalHelpers.Flags
Processes command line flags and extracts filenames to be compiled
HEAP_START - Static variable in class codeGeneration.CgenSupport
 

I

ID - Static variable in class astLexerAndParser.ASTConstants
 
identifier - Variable in class treeNodes.Let
 
idtable - Static variable in class symbolHandling.AbstractTable
Global string table of identifiers
IdTable - Class in symbolHandling
 
IdTable() - Constructor for class symbolHandling.IdTable
 
IF - Static variable in class parser.Sym
 
IF - Static variable in class parser.TokenConstants
 
IN - Static variable in class parser.Sym
 
IN - Static variable in class parser.TokenConstants
 
in_filename - Static variable in class generalHelpers.Flags
First input filename
in_int - Static variable in class generalHelpers.TreeConstants
 
in_string - Static variable in class generalHelpers.TreeConstants
 
index - Variable in class symbolHandling.AbstractSymbol
The index of this entry in the string table
INHERITS - Static variable in class parser.Sym
 
INHERITS - Static variable in class parser.TokenConstants
 
init - Variable in class treeNodes.Attribute
 
init - Variable in class treeNodes.Let
 
init_actions() - Method in class astLexerAndParser.ASTSolutionParser
Action encapsulation object initializer.
init_actions() - Method in class astLexerAndParser.ASTStudentParser
Action encapsulation object initializer.
init_actions() - Method in class parser.CoolParser
Action encapsulation object initializer.
init_actions() - Method in class parser.CoolParserSolution
Action encapsulation object initializer.
init_actions() - Method in class parser.CoolParserSolutionStudent
Action encapsulation object initializer.
INT - Static variable in class astLexerAndParser.ASTConstants
 
Int - Static variable in class generalHelpers.TreeConstants
 
INT_CONST - Static variable in class astLexerAndParser.ASTConstants
 
INT_CONST - Static variable in class parser.Sym
 
INT_CONST - Static variable in class parser.TokenConstants
 
INT_SLOTS - Static variable in class codeGeneration.CgenSupport
 
INTCONST_PREFIX - Static variable in class codeGeneration.CgenSupport
 
IntegerConstant - Class in treeNodes
Defines AST constructor 'int_const'.
IntegerConstant(int, AbstractSymbol) - Constructor for class treeNodes.IntegerConstant
Creates "int_const" AST node.
IntSymbol - Class in symbolHandling
String table entry for integer constants
IntSymbol(String, int, int) - Constructor for class symbolHandling.IntSymbol
 
inttable - Static variable in class symbolHandling.AbstractTable
Global string table of integer constants
IntTable - Class in symbolHandling
 
IntTable() - Constructor for class symbolHandling.IntTable
 
INTTAG - Static variable in class codeGeneration.CgenSupport
 
IO - Static variable in class generalHelpers.TreeConstants
 
ISVOID - Static variable in class astLexerAndParser.ASTConstants
 
ISVOID - Static variable in class parser.Sym
 
ISVOID - Static variable in class parser.TokenConstants
 
IsVoid - Class in treeNodes
Defines AST constructor 'isvoid'.
IsVoid(int, AbstractExpression) - Constructor for class treeNodes.IsVoid
Creates "isvoid" AST node.
iterator() - Method in class generalHelpers.ListNode
Returns an iterator for easy data-access.

J

JAL - Static variable in class codeGeneration.CgenSupport
 
JALR - Static variable in class codeGeneration.CgenSupport
 
JavaCup - Class in parser
 
JavaCup() - Constructor for class parser.JavaCup
 
JLex - Class in lexer
Class: Main Description: Top-level lexical analyzer generator function.
JLex() - Constructor for class lexer.JLex
 

L

LA - Static variable in class codeGeneration.CgenSupport
 
LABEL - Static variable in class codeGeneration.CgenSupport
 
LBRACE - Static variable in class parser.Sym
 
LBRACE - Static variable in class parser.TokenConstants
 
LE - Static variable in class parser.Sym
 
LE - Static variable in class parser.TokenConstants
 
length - Static variable in class generalHelpers.TreeConstants
 
LEQ - Static variable in class astLexerAndParser.ASTConstants
 
Leq - Class in treeNodes
Defines AST constructor 'leq'.
Leq(int, AbstractExpression, AbstractExpression) - Constructor for class treeNodes.Leq
Creates "leq" AST node.
LET - Static variable in class astLexerAndParser.ASTConstants
 
LET - Static variable in class parser.Sym
 
LET - Static variable in class parser.TokenConstants
 
Let - Class in treeNodes
Defines AST constructor 'let'.
Let(int, AbstractSymbol, AbstractSymbol, AbstractExpression, AbstractExpression) - Constructor for class treeNodes.Let
Creates "let" AST node.
LET_STMT - Static variable in class parser.Sym
 
LET_STMT - Static variable in class parser.TokenConstants
 
lexAndParse(F, CoolTokenLexer) - Static method in class parser.Parser
 
lexAndParseCoolSource(F, String[]) - Static method in class parser.Parser
 
lexAndParseCoolToken(F, String[]) - Static method in class parser.Parser
 
lexer - package lexer
 
Lexer - Class in lexer
The lexer driver class
Lexer() - Constructor for class lexer.Lexer
 
LexerFactory - Interface in lexer
 
lexFiles(LexerFactory, String[]) - Static method in class lexer.Lexer
Loops over lexed tokens, printing them out to the string
LexParseError - Exception in parser
 
LexParseError() - Constructor for exception parser.LexParseError
 
LexParseError(String) - Constructor for exception parser.LexParseError
 
LexParseError(Throwable) - Constructor for exception parser.LexParseError
 
LexParseError(String, Throwable) - Constructor for exception parser.LexParseError
 
LI - Static variable in class codeGeneration.CgenSupport
 
LINENO - Static variable in class astLexerAndParser.ASTConstants
 
lineNumber - Variable in class generalHelpers.TreeNode
line in the source file from which this node came.
ListNode<T extends TreeNode> - Class in generalHelpers
Base class for lists of AST elements.
ListNode(int) - Constructor for class generalHelpers.ListNode
Builds a new list node
LOG_WORD_SIZE - Static variable in class codeGeneration.CgenSupport
 
lookup(int) - Method in class symbolHandling.AbstractTable
Looks up a symbol in this string table by its index A fatal error is signalled if the index is out of bounds.
lookup(String) - Method in class symbolHandling.AbstractTable
Looks up a symbol in this string table by its string representation A fatal error is signalled if the string is not in the table
lookup(AbstractSymbol) - Method in class symbolHandling.SymbolTable
Looks up an item through all scopes of the symbol table.
LOOP - Static variable in class astLexerAndParser.ASTConstants
 
LOOP - Static variable in class parser.Sym
 
LOOP - Static variable in class parser.TokenConstants
 
Loop - Class in treeNodes
Defines AST constructor 'loop'.
Loop(int, AbstractExpression, AbstractExpression) - Constructor for class treeNodes.Loop
Creates "loop" AST node.
LPAREN - Static variable in class astLexerAndParser.ASTConstants
 
LPAREN - Static variable in class parser.Sym
 
LPAREN - Static variable in class parser.TokenConstants
 
LT - Static variable in class astLexerAndParser.ASTConstants
 
LT - Static variable in class parser.Sym
 
LT - Static variable in class parser.TokenConstants
 
Lt - Class in treeNodes
Defines AST constructor 'lt'.
Lt(int, AbstractExpression, AbstractExpression) - Constructor for class treeNodes.Lt
Creates "lt" AST node.
LW - Static variable in class codeGeneration.CgenSupport
 

M

main(String[]) - Static method in class astLexerAndParser.ASTTest
Reads lexed tokens from consosle, and outputs the parser tree
main(String[]) - Static method in class astLexerAndParser.TokenLexer
Loops over lexed tokens, printing them out to the console
main(String[]) - Static method in class codeGeneration.Cgen
Reads AST from from consosle, and outputs the assembly code
Main - Static variable in class generalHelpers.TreeConstants
 
main(String[]) - Static method in class lexer.JLex
Function: main
main(String[]) - Static method in class lexer.Lexer
 
main(String[]) - Static method in class parser.JavaCup
 
main(String[]) - Static method in class parser.Parser
Reads lexed tokens from consosle, and outputs the parse tree
main(String[]) - Static method in class semanticAnalyzer.Semant
Reads AST from from consosle, and outputs the new AST
main_meth - Static variable in class generalHelpers.TreeConstants
 
makeErrorMessage(Class_) - Static method in exception semanticAnalyzer.SemanticError
Returns an error-information-string with the line number and file name of the given class.
makeErrorMessage(AbstractSymbol, TreeNode) - Static method in exception semanticAnalyzer.SemanticError
Returns a string containing the file name and the line number of the given tree node.
MAXINT - Static variable in class codeGeneration.CgenSupport
 
METHOD - Static variable in class astLexerAndParser.ASTConstants
 
Method - Class in treeNodes
Defines AST constructor 'method'.
Method(int, AbstractSymbol, ListNode<Formal>, AbstractSymbol, AbstractExpression) - Constructor for class treeNodes.Method
Creates "method" AST node.
METHOD_SEP - Static variable in class codeGeneration.CgenSupport
 
MINUS - Static variable in class parser.Sym
 
MINUS - Static variable in class parser.TokenConstants
 
MOVE - Static variable in class codeGeneration.CgenSupport
 
MUL - Static variable in class astLexerAndParser.ASTConstants
 
MUL - Static variable in class codeGeneration.CgenSupport
 
Mul - Class in treeNodes
Defines AST constructor 'mul'.
Mul(int, AbstractExpression, AbstractExpression) - Constructor for class treeNodes.Mul
Creates "mul" AST node.
MULT - Static variable in class parser.Sym
 
MULT - Static variable in class parser.TokenConstants
 
MyLexer - Interface in lexer
 

N

name - Variable in class treeNodes.AbstractDispatch
 
name - Variable in class treeNodes.AbstractFeature
 
name - Variable in class treeNodes.Assign
 
name - Variable in class treeNodes.Branch
 
name - Variable in class treeNodes.Class_
 
name - Variable in class treeNodes.Formal
 
name - Variable in class treeNodes.Object_
 
NEG - Static variable in class astLexerAndParser.ASTConstants
 
NEG - Static variable in class codeGeneration.CgenSupport
 
NEG - Static variable in class parser.Sym
 
NEG - Static variable in class parser.TokenConstants
 
Negate - Class in treeNodes
Defines AST constructor 'neg'.
Negate(int, AbstractExpression) - Constructor for class treeNodes.Negate
Creates "neg" AST node.
NEW - Static variable in class astLexerAndParser.ASTConstants
 
NEW - Static variable in class parser.Sym
 
NEW - Static variable in class parser.TokenConstants
 
New_ - Class in treeNodes
Defines AST constructor 'new_'.
New_(int, AbstractSymbol) - Constructor for class treeNodes.New_
Creates "new_" AST node.
next_token() - Method in class astLexerAndParser.ASTLexer
 
next_token() - Method in class astLexerAndParser.CoolTokenLexer
 
next_token() - Method in interface lexer.MyLexer
 
next_token() - Method in class lexer.SolutionCoolLexer
 
No_class - Static variable in class generalHelpers.TreeConstants
 
NO_EXPR - Static variable in class astLexerAndParser.ASTConstants
 
NO_TYPE - Static variable in class astLexerAndParser.ASTConstants
 
No_type - Static variable in class generalHelpers.TreeConstants
 
NoExpression - Class in treeNodes
Defines AST constructor 'no_expr'.
NoExpression(int) - Constructor for class treeNodes.NoExpression
Creates "no_expr" AST node.
NoScopePresentException - Error in symbolHandling
This exception is used by the symbol table whenever an operation would require the presence of a scope without there being one.
NoScopePresentException() - Constructor for error symbolHandling.NoScopePresentException
 
NoScopePresentException(String) - Constructor for error symbolHandling.NoScopePresentException
 
NoScopePresentException(Throwable) - Constructor for error symbolHandling.NoScopePresentException
 
NoScopePresentException(String, Throwable) - Constructor for error symbolHandling.NoScopePresentException
 
NOT - Static variable in class parser.Sym
 
NOT - Static variable in class parser.TokenConstants
 

O

OBJECT - Static variable in class astLexerAndParser.ASTConstants
 
Object_ - Static variable in class generalHelpers.TreeConstants
 
Object_ - Class in treeNodes
Defines AST constructor 'object'.
Object_(int, AbstractSymbol) - Constructor for class treeNodes.Object_
Creates "object" AST node.
OBJECTID - Static variable in class parser.Sym
 
OBJECTID - Static variable in class parser.TokenConstants
 
OBJECTPROTOBJ - Static variable in class codeGeneration.CgenSupport
 
OF - Static variable in class parser.Sym
 
OF - Static variable in class parser.TokenConstants
 
out_filename - Static variable in class generalHelpers.Flags
Output filename
out_int - Static variable in class generalHelpers.TreeConstants
 
out_string - Static variable in class generalHelpers.TreeConstants
 

P

pad(int) - Static method in class generalHelpers.Utilities
Returns the specified amount of space padding
parent - Variable in class treeNodes.Class_
 
parse() - Method in class parser.DynamicParserFactory
 
parse() - Method in interface parser.ParserFactory
After setting the lexer, this parse() is the command to parse the stream coming from the lexer, debug_parse() does so in debug mode.
parse() - Method in class parser.SolutionParserFactory
 
parse() - Method in class parser.SolutionStudentParserFactory
 
parse() - Method in class parser.StudentParserFactory
 
parser - package parser
 
Parser - Class in parser
The parser driver class
Parser() - Constructor for class parser.Parser
 
parser_debug - Static variable in class generalHelpers.Flags
Enable parser debugging
ParserFactory - Interface in parser
 
PLUS - Static variable in class astLexerAndParser.ASTConstants
 
PLUS - Static variable in class parser.Sym
 
PLUS - Static variable in class parser.TokenConstants
 
Plus - Class in treeNodes
Defines AST constructor 'plus'.
Plus(int, AbstractExpression, AbstractExpression) - Constructor for class treeNodes.Plus
Creates "plus" AST node.
POOL - Static variable in class parser.Sym
 
POOL - Static variable in class parser.TokenConstants
 
pred - Variable in class treeNodes.Conditional
 
pred - Variable in class treeNodes.Loop
 
prim_slot - Static variable in class generalHelpers.TreeConstants
 
printEscapedString(Writer, String) - Static method in class generalHelpers.Utilities
 
printEscapedString(PrintWriter, String) - Static method in class generalHelpers.Utilities
Prints an appropritely escaped string
printToken(Symbol) - Static method in class generalHelpers.Utilities
Prints a token to stderr
probe(AbstractSymbol) - Method in class symbolHandling.SymbolTable
Probes the symbol table.
production_table() - Method in class astLexerAndParser.ASTSolutionParser
Access to production table.
production_table() - Method in class astLexerAndParser.ASTStudentParser
Access to production table.
production_table() - Method in class parser.CoolParser
Access to production table.
production_table() - Method in class parser.CoolParserSolution
Access to production table.
production_table() - Method in class parser.CoolParserSolutionStudent
Access to production table.
PROGRAM - Static variable in class astLexerAndParser.ASTConstants
 
Program - Class in treeNodes
Defines AST constructor 'program'.
Program(int, ListNode<Class_>) - Constructor for class treeNodes.Program
Creates "program" AST node.
PROTOBJ_SUFFIX - Static variable in class codeGeneration.CgenSupport
 

R

RA - Static variable in class codeGeneration.CgenSupport
 
RBRACE - Static variable in class parser.Sym
 
RBRACE - Static variable in class parser.TokenConstants
 
reduce_table() - Method in class astLexerAndParser.ASTSolutionParser
Access to reduce_goto table.
reduce_table() - Method in class astLexerAndParser.ASTStudentParser
Access to reduce_goto table.
reduce_table() - Method in class parser.CoolParser
Access to reduce_goto table.
reduce_table() - Method in class parser.CoolParserSolution
Access to reduce_goto table.
reduce_table() - Method in class parser.CoolParserSolutionStudent
Access to reduce_goto table.
RET - Static variable in class codeGeneration.CgenSupport
 
return_type - Variable in class treeNodes.Method
 
root() - Method in class codeGeneration.CgenClassTable
Gets the root of the inheritance tree
RPAREN - Static variable in class astLexerAndParser.ASTConstants
 
RPAREN - Static variable in class parser.Sym
 
RPAREN - Static variable in class parser.TokenConstants
 

S

SELF - Static variable in class codeGeneration.CgenSupport
 
self - Static variable in class generalHelpers.TreeConstants
 
SELF_TYPE - Static variable in class generalHelpers.TreeConstants
 
semant() - Method in class parser.DynamicParserFactory
 
semant() - Method in interface parser.ParserFactory
Runs the semantic checker on the AST accessible by getResultAST().
semant() - Method in class parser.SolutionParserFactory
 
semant() - Method in class parser.SolutionStudentParserFactory
 
semant() - Method in class parser.StudentParserFactory
 
Semant - Class in semanticAnalyzer
Static semantics driver class The entry point of your semantic checker is in Program.semant().
Semant() - Constructor for class semanticAnalyzer.Semant
 
semant() - Method in class treeNodes.Program
This method is the entry point to the semantic checker.
semant_debug - Static variable in class generalHelpers.Flags
Enable semantic analysis debugging
semanticAnalyzer - package semanticAnalyzer
 
SemanticError - Exception in semanticAnalyzer
This class is used as a general exception class for whatever semantic error can occur.
SemanticError(String) - Constructor for exception semanticAnalyzer.SemanticError
 
SemanticError(String, Class_) - Constructor for exception semanticAnalyzer.SemanticError
 
SemanticError(String, AbstractSymbol, TreeNode) - Constructor for exception semanticAnalyzer.SemanticError
 
SEMI - Static variable in class parser.Sym
 
SEMI - Static variable in class parser.TokenConstants
 
set(TreeNode) - Method in class generalHelpers.TreeNode
Sets the values of this node object to the values of a given node.
set_filename(String) - Method in interface lexer.MyLexer
 
set_filename(String) - Method in class lexer.SolutionCoolLexer
 
setLexer(CoolTokenLexer) - Method in class parser.DynamicParserFactory
 
setLexer(CoolTokenLexer) - Method in interface parser.ParserFactory
This method is used to specify the input to the parser.
setLexer(CoolTokenLexer) - Method in class parser.SolutionParserFactory
 
setLexer(CoolTokenLexer) - Method in class parser.SolutionStudentParserFactory
 
setLexer(CoolTokenLexer) - Method in class parser.StudentParserFactory
 
setParentNd(CgenNode) - Method in class codeGeneration.CgenNode
Sets the parent of this class.
setType(AbstractSymbol) - Method in class treeNodes.AbstractExpression
 
SIZE_OFFSET - Static variable in class codeGeneration.CgenSupport
 
SLL - Static variable in class codeGeneration.CgenSupport
 
SolutionCoolLexer - Class in lexer
 
SolutionCoolLexer(Reader) - Constructor for class lexer.SolutionCoolLexer
 
SolutionCoolLexer(InputStream) - Constructor for class lexer.SolutionCoolLexer
 
SolutionLexerFactory - Class in lexer
 
SolutionLexerFactory() - Constructor for class lexer.SolutionLexerFactory
 
SolutionParserFactory - Class in parser
This class works as an interface for the parsing with the solution AST.
SolutionParserFactory() - Constructor for class parser.SolutionParserFactory
 
SolutionStudentParserFactory - Class in parser
This class works as an interface for the parsing with the solution AST.
SolutionStudentParserFactory() - Constructor for class parser.SolutionStudentParserFactory
 
SP - Static variable in class codeGeneration.CgenSupport
 
start_production() - Method in class astLexerAndParser.ASTSolutionParser
Indicates start production.
start_production() - Method in class astLexerAndParser.ASTStudentParser
Indicates start production.
start_production() - Method in class parser.CoolParser
Indicates start production.
start_production() - Method in class parser.CoolParserSolution
Indicates start production.
start_production() - Method in class parser.CoolParserSolutionStudent
Indicates start production.
start_state() - Method in class astLexerAndParser.ASTSolutionParser
Indicates start state.
start_state() - Method in class astLexerAndParser.ASTStudentParser
Indicates start state.
start_state() - Method in class parser.CoolParser
Indicates start state.
start_state() - Method in class parser.CoolParserSolution
Indicates start state.
start_state() - Method in class parser.CoolParserSolutionStudent
Indicates start state.
STATIC_DISPATCH - Static variable in class astLexerAndParser.ASTConstants
 
StaticDispatch - Class in treeNodes
Defines AST constructor 'static_dispatch'.
StaticDispatch(int, AbstractExpression, AbstractSymbol, AbstractSymbol, ListNode<AbstractExpression>) - Constructor for class treeNodes.StaticDispatch
Creates "dispatch" AST node.
STR - Static variable in class astLexerAndParser.ASTConstants
 
Str - Static variable in class generalHelpers.TreeConstants
 
str - Variable in class symbolHandling.AbstractSymbol
The stored string
STR_CONST - Static variable in class astLexerAndParser.ASTConstants
 
STR_CONST - Static variable in class parser.Sym
 
STR_CONST - Static variable in class parser.TokenConstants
 
str_field - Static variable in class generalHelpers.TreeConstants
 
STRCONST_PREFIX - Static variable in class codeGeneration.CgenSupport
 
STRING_SLOTS - Static variable in class codeGeneration.CgenSupport
 
StringConstant - Class in treeNodes
Defines AST constructor 'string_const'.
StringConstant(int, AbstractSymbol) - Constructor for class treeNodes.StringConstant
Creates "string_const" AST node.
StringSymbol - Class in symbolHandling
String table entry for string constants.
StringSymbol(String, int, int) - Constructor for class symbolHandling.StringSymbol
 
stringtable - Static variable in class symbolHandling.AbstractTable
Global string table of string constants
StringTable - Class in symbolHandling
 
StringTable() - Constructor for class symbolHandling.StringTable
 
STRINGTAG - Static variable in class codeGeneration.CgenSupport
 
StudentLexerFactory - Class in lexer
 
StudentLexerFactory() - Constructor for class lexer.StudentLexerFactory
 
StudentParserFactory - Class in parser
This class works as an interface for the parsing with the student AST.
StudentParserFactory() - Constructor for class parser.StudentParserFactory
 
SUB - Static variable in class astLexerAndParser.ASTConstants
 
SUB - Static variable in class codeGeneration.CgenSupport
 
Sub - Class in treeNodes
Defines AST constructor 'sub'.
Sub(int, AbstractExpression, AbstractExpression) - Constructor for class treeNodes.Sub
Creates "sub" AST node.
substr - Static variable in class generalHelpers.TreeConstants
 
SW - Static variable in class codeGeneration.CgenSupport
 
Sym - Class in parser
CUP generated class containing symbol constants.
Sym() - Constructor for class parser.Sym
 
symbolHandling - package symbolHandling
 
SymbolTable<T> - Class in symbolHandling
Implements the symbol table data abstraction.
SymbolTable() - Constructor for class symbolHandling.SymbolTable
Creates an empty symbol table.
syntax_error(Symbol) - Method in class astLexerAndParser.ASTSolutionParser
 
syntax_error(Symbol) - Method in class astLexerAndParser.ASTStudentParser
 
syntax_error(Symbol) - Method in class parser.CoolParser
 
syntax_error(Symbol) - Method in class parser.CoolParserSolution
 
syntax_error(Symbol) - Method in class parser.CoolParserSolutionStudent
 

T

T1 - Static variable in class codeGeneration.CgenSupport
 
T2 - Static variable in class codeGeneration.CgenSupport
 
T3 - Static variable in class codeGeneration.CgenSupport
 
table - Variable in class symbolHandling.AbstractTable
Vector of table entries
TAG_OFFSET - Static variable in class codeGeneration.CgenSupport
 
THEN - Static variable in class parser.Sym
 
THEN - Static variable in class parser.TokenConstants
 
then_exp - Variable in class treeNodes.Conditional
 
token - Variable in class treeNodes.IntegerConstant
 
token - Variable in class treeNodes.StringConstant
 
TokenConstants - Class in parser
CUP generated class containing symbol constants.
TokenConstants() - Constructor for class parser.TokenConstants
 
TokenLexer - Class in astLexerAndParser
The lexer driver class for token lexer
TokenLexer() - Constructor for class astLexerAndParser.TokenLexer
 
tokenToString(Symbol) - Static method in class generalHelpers.Utilities
Returns a string representation for a token
toString() - Method in class generalHelpers.ListNode
Returns a string representation of this list.
toString() - Method in class symbolHandling.AbstractSymbol
Returns a printable representation of this symbol.
toString() - Method in class symbolHandling.AbstractTable
Produces a printable representation of the string table
toString() - Method in class symbolHandling.SymbolTable
Gets the string representation of the symbol table.
TreeConstants - Class in generalHelpers
For convenience, this class defines a large number of symbols.
TreeConstants() - Constructor for class generalHelpers.TreeConstants
 
TreeNode - Class in generalHelpers
The base class for all AST nodes.
TreeNode(int) - Constructor for class generalHelpers.TreeNode
Builds a new tree node
treeNodes - package treeNodes
 
truebool - Static variable in class symbolHandling.BoolConst
 
TYPCASE - Static variable in class astLexerAndParser.ASTConstants
 
type_decl - Variable in class treeNodes.Attribute
 
type_decl - Variable in class treeNodes.Branch
 
type_decl - Variable in class treeNodes.Formal
 
type_decl - Variable in class treeNodes.Let
 
type_name - Static variable in class generalHelpers.TreeConstants
 
type_name - Variable in class treeNodes.New_
 
type_name - Variable in class treeNodes.StaticDispatch
 
TYPEID - Static variable in class parser.Sym
 
TYPEID - Static variable in class parser.TokenConstants
 

U

unrecovered_syntax_error(Symbol) - Method in class astLexerAndParser.ASTSolutionParser
 
unrecovered_syntax_error(Symbol) - Method in class astLexerAndParser.ASTStudentParser
 
unrecovered_syntax_error(Symbol) - Method in class parser.CoolParser
 
unrecovered_syntax_error(Symbol) - Method in class parser.CoolParserSolution
 
unrecovered_syntax_error(Symbol) - Method in class parser.CoolParserSolutionStudent
 
Utilities - Class in generalHelpers
 
Utilities() - Constructor for class generalHelpers.Utilities
 

V

val - Static variable in class generalHelpers.TreeConstants
 
val - Variable in class treeNodes.BoolConstant
 

W

WHILE - Static variable in class parser.Sym
 
WHILE - Static variable in class parser.TokenConstants
 
WORD - Static variable in class codeGeneration.CgenSupport
 
WORD_SIZE - Static variable in class codeGeneration.CgenSupport
 

Z

ZERO - Static variable in class codeGeneration.CgenSupport
 

_

_action_table - Static variable in class astLexerAndParser.ASTSolutionParser
Parse-action table.
_action_table - Static variable in class astLexerAndParser.ASTStudentParser
Parse-action table.
_action_table - Static variable in class parser.CoolParser
Parse-action table.
_action_table - Static variable in class parser.CoolParserSolution
Parse-action table.
_action_table - Static variable in class parser.CoolParserSolutionStudent
Parse-action table.
_production_table - Static variable in class astLexerAndParser.ASTSolutionParser
Production table.
_production_table - Static variable in class astLexerAndParser.ASTStudentParser
Production table.
_production_table - Static variable in class parser.CoolParser
Production table.
_production_table - Static variable in class parser.CoolParserSolution
Production table.
_production_table - Static variable in class parser.CoolParserSolutionStudent
Production table.
_reduce_table - Static variable in class astLexerAndParser.ASTSolutionParser
reduce_goto table.
_reduce_table - Static variable in class astLexerAndParser.ASTStudentParser
reduce_goto table.
_reduce_table - Static variable in class parser.CoolParser
reduce_goto table.
_reduce_table - Static variable in class parser.CoolParserSolution
reduce_goto table.
_reduce_table - Static variable in class parser.CoolParserSolutionStudent
reduce_goto table.

A B C D E F G H I J L M N O P R S T U V W Z _