CS 536 Fall 2007, Project 5
A B C D E F G I K L M N O P R S T U V W Y

A

acceptPrefix - Variable in class Parser
If true, accept when a prefix of the input matches.
AssignStmtNode - Class in <Unnamed>
An AST node representing an assignment statement "var := expr;" or "var(subscript) := expr;".
AssignStmtNode(SimpleExprNode, ExprNode) - Constructor for class AssignStmtNode
Creates a new AssignStmtNode.
ASTNode - Class in <Unnamed>
A node in an Abstract Syntax Tree for ada536.
ASTNode() - Constructor for class ASTNode
 
ASTNode.Opcode - Enum in <Unnamed>
Operator codes.

B

badArgType(int, int, String) - Static method in class Err
Prints an error message concerning an argument type mismatch.
badIntLiteral(int, int, String) - Static method in class Err
Prints an error message concerning an invalid integer literal (one whose value is larger than Integer.MAX_VALUE).
badReturnType(int, int, String) - Static method in class Err
Prints an error message concerning a bad type of return expression.
baseType - Variable in class Type
The "base" type.
BlockNode - Class in <Unnamed>
An AST node representing a block (procedure or function body): "decls BEGIN stmts END".
BlockNode() - Constructor for class BlockNode
 
body - Variable in class IfStmtNode.IfThen
The sequence of statements following the "then".
bytes() - Method in class Type
Returns the size, in bytes, of an instance of this type.

C

CallStmtNode - Class in <Unnamed>
An AST node representing a procedure call statement: "procName(args);" or "procName;".
CallStmtNode(IdNode, List<ExprNode>) - Constructor for class CallStmtNode
Creates a new CallStmtNode.
CG - Class in <Unnamed>
Static methods for generating code to a file.
CG() - Constructor for class CG
 
close() - Static method in class CG
Closes the output stream.
code - Variable in class Token
A code indicating the token class of this token.
codeGen(StmtNode) - Method in class AssignStmtNode
Generates code for this statement.
codeGen(StmtNode) - Method in class BlockNode
Generates code for this block and all its contents.
codeGen(StmtNode) - Method in class CallStmtNode
Generates code for this statement.
codeGen(StmtNode) - Method in class DeclNode
Generates code for this declaration and all descendants.
codeGen(StmtNode) - Method in class ExitStmtNode
Generates code for this statement.
codeGen(String, String) - Method in class ExprNode
Generates jump code for this expression and all sub-expressions.
codeGen(int) - Method in class ExprNode
Generates code to load the value of this expression into a register.
codeGen(StmtNode) - Method in class ForStmtNode
Generates code for this statement.
codeGen(StmtNode) - Method in class IfStmtNode
Generates code for this statement.
codeGen(int) - Method in class LiteralNode
Generates code to load the value of this literal into a register.
codeGen(StmtNode) - Method in class NullStmtNode
Does nothing (no code needed for this statement).
codeGen(int) - Method in class OpExprNode
Generates code to load the value of this expression into a register.
codeGen(StmtNode) - Method in class ProcDeclNode
Generates code for this node and all descendants.
codeGen(StmtNode) - Method in class ReadStmtNode
Generates code for this statement.
codeGen(StmtNode) - Method in class ReturnStmtNode
Generates code for this statement.
codeGen(int) - Method in class SimpleExprNode
Generates code to load the value of this expression into a register.
codeGen(StmtNode) - Method in class StmtNode
Generates code for this node and all descendants.
codeGen(StmtNode) - Method in class VarDeclNode
Generates code for this node and all descendants.
codeGen(StmtNode) - Method in class WhileStmtNode
Generates code for this statement.
codeGen(StmtNode) - Method in class WriteStmtNode
Generates code for this statement.
codeGenLValue(int) - Method in class SimpleExprNode
Generates code to load the lvalue of this expression into a register.
column - Variable in class ExprNode
The column number of the first identifier or literal in this expression.
column - Variable in class Token
The column of the first character of this token.
comment(String, Object...) - Static method in class CG
Generates a comment.
complexExpression(int, int) - Static method in class Err
Prints an error message concerning an expression that is too complex to compile.
cond - Variable in class IfStmtNode.IfThen
The condition on the "if" or "elseif".
currentColumn() - Method in class Scanner
Returns the column number (starting with 1) of the start of the most recently returned token.
currentLine() - Method in class Scanner
Returns the source line number (starting with 1) of the most recently returned token.

D

DeclNode - Class in <Unnamed>
An AST node representing a declaration of a function, procedure, or variable.
DeclNode() - Constructor for class DeclNode
 
DeclNodeList - Class in <Unnamed>
Wrapper for a list of Decl.
DeclNodeList() - Constructor for class DeclNodeList
 
decls - Variable in class BlockNode
List of variables, functions, and procedures declared locally in the block.
define(Symbol) - Method in class SymbolTable
Adds symbol "sym" to the current block of the symbol table.
duplicateDeclaration(int, int, String) - Static method in class Err
Prints an error message concerning a multiply declared identifier.
DuplicateSymbolException - Exception in <Unnamed>
An Exception that indicates that an attempt was made to insert a duplicate definition into a SymbolTable.
DuplicateSymbolException() - Constructor for exception DuplicateSymbolException
 

E

EmptySymbolTableException - Exception in <Unnamed>
An Exception that indicates that an illegal operation was performed on an empty SymbolTable (one with no blocks).
EmptySymbolTableException() - Constructor for exception EmptySymbolTableException
 
enableTracing(boolean) - Method in class Parser
Turn debug tracing on or off.
enclosingProc - Variable in class DeclNode
Pointer to the smallest enclosing procedure or function, if any.
enclosingProc - Variable in class StmtNode
Pointer to the smallest enclosing procedure or function.
Err - Class in <Unnamed>
Functions for printing error messages.
ERROR - Static variable in class Type
A constant Type representing the "type" of an expression that contains a type error.
errors() - Static method in class Err
Returns a count of the total number of errors thus far.
exitLabel - Variable in class StmtNode
Exit label.
ExitStmtNode - Class in <Unnamed>
An AST node representing an exit statement: "exit;".
ExitStmtNode() - Constructor for class ExitStmtNode
 
ExprNode - Class in <Unnamed>
An AST node representing an expression.
ExprNode() - Constructor for class ExprNode
 
ExprNodeList - Class in <Unnamed>
Wrapper for a list of ExprNode.
ExprNodeList() - Constructor for class ExprNodeList
 

F

ForStmtNode - Class in <Unnamed>
An AST node representing a for statement: "FOR variable IN low DOTDOT high LOOP stmts END LOOP;".
ForStmtNode(IdNode, ExprNode, ExprNode, List<StmtNode>) - Constructor for class ForStmtNode
Creates a new ForStmtNode.
frameSize - Variable in class ProcDeclNode
The size, in bytes, of a stack frame for this procedure, including formal parameters, return address, control pointer, register save area, and local variables.
functionOutParam(int, int, String) - Static method in class Err
Prints an error message concerning an "out" or "in out" parameter in a function.

G

getAddress() - Method in class IdNode
Generates a SPIM address for this id, either "_id" or "-nnn($fp)" depending on this id's offset.
getName() - Method in class IdNode
Returns the string name of this identifier.
getName() - Method in class Symbol
Returns the name of this symbol.
getSymbol() - Method in class IdNode
Returns the Symbol bound to this identifier.
getType() - Method in class Symbol
Returns the type of this symbol.
globalLookup(String) - Method in class SymbolTable
Returns the Symbol with the given name in the block that is highest (nearest the top) of the stack that has such a Symbol.

I

id - Variable in class ProcDeclNode
The name of the procedure.
id - Variable in class ProcDeclNode.Param
The name of the parameter.
IdNode - Class in <Unnamed>
An AST node representing an identifier.
IdNode(String, int, int) - Constructor for class IdNode
Creates a new IdNode.
IfStmtNode - Class in <Unnamed>
An AST node representing an "if" statement: "IF cond THEN stmts [ELSIF stmts]* [ELSE stmts]?
IfStmtNode(IfStmtNode.IfThen, List<IfStmtNode.IfThen>, List<StmtNode>) - Constructor for class IfStmtNode
Creates a new IfStmtNode.
IfStmtNode.IfThen - Class in <Unnamed>
A condition and corresponding sequence of statements corresponding to an if/then or elsif/then clause of an if statement.
IfStmtNode.IfThen(ExprNode, List<StmtNode>) - Constructor for class IfStmtNode.IfThen
Constructs a new IfThen.
IfThenList - Class in <Unnamed>
Wrapper for a list of IfStmtNode.IfThen.
IfThenList() - Constructor for class IfThenList
 
indent(PrintWriter, int) - Method in class ASTNode
A handy utility for generating a newline followed by the indentation for the next line.
inParameter - Variable in class Symbol
True for formal parameters of mode IN or NONE.
inst(String, Object...) - Static method in class CG
Outputs a machine instruction.
intValue() - Method in class Token
Returns an integer code corresponding to this token.
invalidAssignment(int, int) - Static method in class Err
Prints an error message concerning an attempt to assign incompatible types.
invalidBound(int, int, String) - Static method in class Err
Prints an error message concerning an invalid lower or upper bound in and array declaration.
invalidCharacter(int, int, String) - Static method in class Err
Prints an error message concerning an invalid input character.
invalidRead(int, int) - Static method in class Err
Prints an error message concerning an attempt to read a string.
isBool() - Method in class Type
Tests whether this Type is the scalar type BOOL.
isError() - Method in class Type
Tests whether this Type is the scalar type ERROR.
isInt() - Method in class Type
Tests whether this Type is the scalar type INT.
isLValue() - Method in class SimpleExprNode
Tests whether this SimpleExprNode represents something that may be on the left-hand-side of an assignment, or passed to an OUT or INOUT parameter of a procedure or function.
isLValue(ExprNode) - Static method in class SimpleExprNode
Convenience function to test whether an arbitrary ExprNode is an LValue.

K

kind - Variable in class Type
The "kind" of this type.

L

label(String) - Static method in class CG
Outputs a label.
labelCounter - Static variable in class CG
Counter for generating unique assembly language labels.
line - Variable in class ExprNode
The line number of the first identifier or literal in this expression.
line - Variable in class Token
The line on which this token appears.
LiteralNode - Class in <Unnamed>
An AST node representing an integer, string, or Boolean literal (constant).
LiteralNode(Object, int, int) - Constructor for class LiteralNode
Creates a new LiteralNode.
localLookup(String) - Method in class SymbolTable
Returns the Symbol with the given name in the top block of the table.

M

main(String[]) - Static method in class P5
Runs the test.
matches(Type) - Method in class Type
Tests whether this Type matches other Type.
MAX_S_REG - Static variable in class CG
Max S register number.
missingReturn(int, int, String) - Static method in class Err
Prints an error message concerning a missing return value.
mode - Variable in class ProcDeclNode.Param
The mode of the parameter (IN, OUT, INOUT, or NONE).

N

name - Static variable in class Parser
String names of terminal symbols, for debugging.
newLabel() - Static method in class CG
Generates a new label.
next() - Method in class Scanner
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.
nonBooleanExpression(int, int) - Static method in class Err
Prints an error message concerning a non-boolean expression used where a boolean expression is required.
nonIntegerBound(int, int, String) - Static method in class Err
Prints an error message concerning a non-integer bound in a for statement.
nonIntegerSubscript(int, int, String) - Static method in class Err
Prints an error message concerning a non-integer expression used as a subscript.
nonIntegerVariable(int, int) - Static method in class Err
Prints an error message concerning a non-integer variable in a for statement.
nonLValueArg(int, int, ProcDeclNode.Mode, String) - Static method in class Err
Prints an error message concerning a non-lvalue passed to an "out" or "in out" parameter.
nonLValueLHS(int, int) - Static method in class Err
Prints an error message concerning a non-lvalue on the left-hand side of an assignment statement.
nonProcedureCall(int, int, String) - Static method in class Err
Prints an error message concerning a statement that looks like a procedure call but does not name a valid procedure.
nonVoidReturn(int, int, String) - Static method in class Err
Prints an error message concerning a return value for a procedure.
NullStmtNode - Class in <Unnamed>
An AST node representing a null statement: "null;".
NullStmtNode(int, int) - Constructor for class NullStmtNode
Creates a new NullStmtNode.

O

offset - Variable in class Symbol
The offset of this symbol from the frame pointer.
open(String) - Static method in class CG
Opens the output stream.
operandType(int, int, String, ASTNode.Opcode) - Static method in class Err
Prints an error message concerning an invalid operand type.
OpExprNode - Class in <Unnamed>
An AST node representing an operator applied to one or two operands, as in "exp1 + exp2" or "NOT exp".
OpExprNode(ExprNode, ExprNode, ASTNode.Opcode) - Constructor for class OpExprNode
Creates a new OpExprNode.

P

P5 - Class in <Unnamed>
A test program for excercising the scanner of Project 4, CS 536, Fall 2004.
P5() - Constructor for class P5
 
ParamList - Class in <Unnamed>
Wrapper for a list of ProcDeclNode.Param.
ParamList() - Constructor for class ParamList
 
paramModes - Variable in class Type
The modes of the parameters to this function.
paramNames - Variable in class Type
The names of the parameters to this function.
paramTypes - Variable in class Type
The types of the parameters to this function.
parse(boolean) - Method in class Parser
Check whether the the unconsumed input is a syntactically valid phrase according to the grammar.
parse() - Method in class Parser
Check whether the the unconsumed input is a syntactically valid phrase according to the grammar.
parseError(int, int, String) - Static method in class Err
Prints an error message concerning a syntax error.
Parser - Class in <Unnamed>
 
Parser(String) - Constructor for class Parser
 
pop() - Method in class SymbolTable
Pops the top block off the stack, destroying it.
print(PrintStream) - Method in class SymbolTable
Prints the contents of this symbol table.
ProcDeclNode - Class in <Unnamed>
An AST node representing a function or procedure declaration: "FUNCTION name(parameters) RETURN type IS decls BEGIN stmts END;" or "PROCEDURE name(parameters) IS decls BEGIN stmts END;".
ProcDeclNode(IdNode, List<ProcDeclNode.Param>, Type.BaseType, BlockNode) - Constructor for class ProcDeclNode
Creates a new ProcDeclNode.
ProcDeclNode.Mode - Enum in <Unnamed>
A parameter mode: IN, OUT, INOUT, or NONE (equivalent to IN).
ProcDeclNode.Param - Class in <Unnamed>
A formal parameter.
ProcDeclNode.Param(IdNode, Type.BaseType, ProcDeclNode.Mode) - Constructor for class ProcDeclNode.Param
Creates a new parameter.
push() - Method in class SymbolTable
Pushes a new empty block onto the stack of blocks.

R

ReadStmtNode - Class in <Unnamed>
An AST node representing a read statement: "READ(expr);".
ReadStmtNode(int, int, SimpleExprNode) - Constructor for class ReadStmtNode
Creates a new ReadStmtNode.
resolveNames(SymbolTable) - Method in class AssignStmtNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class ASTNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class BlockNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class CallStmtNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class ExitStmtNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class ForStmtNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class IdNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class IfStmtNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class LiteralNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class NullStmtNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class OpExprNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class ProcDeclNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class ReadStmtNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class ReturnStmtNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class SimpleExprNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class VarDeclNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class WhileStmtNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveNames(SymbolTable) - Method in class WriteStmtNode
Resolves all applied uses of identifiers in the tree rooted at this node.
resolveTypes(ProcDeclNode) - Method in class AssignStmtNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class ASTNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class BlockNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class CallStmtNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class ExitStmtNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class ForStmtNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class IdNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class IfStmtNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class LiteralNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class NullStmtNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class OpExprNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class ProcDeclNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class ReadStmtNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class ReturnStmtNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class SimpleExprNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class VarDeclNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class WhileStmtNode
Fills in types for all Symbols bound to IdNodes.
resolveTypes(ProcDeclNode) - Method in class WriteStmtNode
Fills in types for all Symbols bound to IdNodes.
ReturnStmtNode - Class in <Unnamed>
An AST node representing a return statement: "return;" or "return expr;".
ReturnStmtNode(int, int, ExprNode) - Constructor for class ReturnStmtNode
Creates a new ReturnStmtNode.
returnType - Variable in class ProcDeclNode
The return type of the procedure or function.

S

S(int) - Static method in class CG
Returns the name of an S register.
Scanner - Class in <Unnamed>
This class is a scanner generated by JFlex 1.4.1 on 11/19/07 6:56 AM from the specification file ada536.jflex
Scanner(Reader) - Constructor for class Scanner
Creates a new scanner There is also a java.io.InputStream version of this constructor.
Scanner(InputStream) - Constructor for class Scanner
Creates a new scanner.
setFile(String) - Static method in class Err
Indicates the name of the input file.
setType(Type) - Method in class Symbol
Sets the type of this symbol.
SimpleExprNode - Class in <Unnamed>
An AST node representing a simple expression with syntax "id" or "id(expr,...
SimpleExprNode(IdNode, List<ExprNode>) - Constructor for class SimpleExprNode
Creates a new SimpleExprNode.
size - Variable in class Type
The size of this array type.
StmtNode - Class in <Unnamed>
An AST node representing a statement of some sort.
StmtNode() - Constructor for class StmtNode
 
StmtNodeList - Class in <Unnamed>
Wrapper for a list of StmtNode.
StmtNodeList() - Constructor for class StmtNodeList
 
stmts - Variable in class BlockNode
List of statements in the block.
subscriptedScalar(int, int, String) - Static method in class Err
Prints an error message concerning parentheses following an identifier that does not represent a function, procedure, or array.
Symbol - Class in <Unnamed>
Information about a symbol (an identifier).
Symbol(String) - Constructor for class Symbol
Creates a new Symbol.
SymbolTable - Class in <Unnamed>
A block-structured symbol table.
SymbolTable() - Constructor for class SymbolTable
Constructs an empty SymbolTable.

T

Token - Class in <Unnamed>
Tokens returned by the scanner.
Token(TokenCode, int, int, Object) - Constructor for class Token
Creates a new token.
Token(TokenCode, int, int) - Constructor for class Token
Creates a new token with null value.
TokenCode - Enum in <Unnamed>
 
toString() - Method in enum ASTNode.Opcode
Returns the string representation of this Opcode.
toString() - Method in class ASTNode
Produces a string representation of this node, for debugging.
toString() - Method in class Symbol
Convert this Symbol to a String, for debugging.
toString() - Method in class SymbolTable
Returns a string representation of this SymbolTable, for debugging.
toString() - Method in class Token
Returns a printable representation of this token.
toString() - Method in enum TokenCode
Returns a string representation for this token code.
toString() - Method in enum Type.BaseType
Converts this type into String for debugging.
toString() - Method in class Type
Converts this type into String for debugging.
tracing - Variable in class Parser
Set to true if parsing actions should be traced.
type - Variable in class ExprNode
The type of this expression.
type - Variable in class ProcDeclNode.Param
The type of the parameter.
Type - Class in <Unnamed>
A object representing a type in the Ada536 langauge.
Type(Type.BaseType) - Constructor for class Type
Creates a new SCALAR type.
Type(Type.BaseType, int) - Constructor for class Type
Creates a new ARRAY type.
Type(String[], Type[], ProcDeclNode.Mode[], Type.BaseType) - Constructor for class Type
Creates a new PROCEDURE type.
Type.BaseType - Enum in <Unnamed>
Basic types: int, bool, void, string, or error.
Type.Kind - Enum in <Unnamed>
One of SCALAR, PROCEDURE, or ARRAY.

U

undeclaredIdentifier(int, int, String) - Static method in class Err
Prints an error message concerning an undeclared identifier.
unparse(PrintWriter, int) - Method in class AssignStmtNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class ASTNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class BlockNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class CallStmtNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class ExitStmtNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class ForStmtNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class IdNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class IfStmtNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class LiteralNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class NullStmtNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class OpExprNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class ProcDeclNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class ReadStmtNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class ReturnStmtNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class SimpleExprNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class VarDeclNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class WhileStmtNode
Prints a source representation of the tree rooted at this node on output stream p.
unparse(PrintWriter, int) - Method in class WriteStmtNode
Prints a source representation of the tree rooted at this node on output stream p.
unterminatedString(int, int, String) - Static method in class Err
Prints an error message concerning a non-terminated string literal.

V

value - Variable in class Token
The value of this token, if any.
value - Variable in enum TokenCode
Internal value for this token code.
valueOf(String) - Static method in enum ASTNode.Opcode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ProcDeclNode.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum TokenCode
Returns the enum constant of this type with the specified name.
valueOf(int) - Static method in enum TokenCode
Returns the TokenCode corresponding to a particular value.
valueOf(String) - Static method in enum Type.BaseType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum Type.Kind
Returns the enum constant of this type with the specified name.
values() - Static method in enum ASTNode.Opcode
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum ProcDeclNode.Mode
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum TokenCode
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum Type.BaseType
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum Type.Kind
Returns an array containing the constants of this enum type, in the order they're declared.
VarDeclNode - Class in <Unnamed>
An AST node representing a variable declaration: "id : type;" or "id : ARRAY (INT DOTDOT INT) OF type;".
VarDeclNode(IdNode, Type.BaseType, int, int) - Constructor for class VarDeclNode
Creates a new VarDeclNode for an array declaration.
VarDeclNode(IdNode, Type.BaseType) - Constructor for class VarDeclNode
Creates a new VarDeclNode for a scalar declaration.

W

WhileStmtNode - Class in <Unnamed>
An AST node representing a while statement: "[WHILE cond]?
WhileStmtNode(ExprNode, List<StmtNode>) - Constructor for class WhileStmtNode
Creates a new WhileStmtNode.
WriteStmtNode - Class in <Unnamed>
An AST node representing a write statement: "WRITE(expr);".
WriteStmtNode(int, int, ExprNode) - Constructor for class WriteStmtNode
Creates a new WriteStmtNode.
wrongNumberArgs(int, int, String) - Static method in class Err
Prints an error message concerning a call with the wrong number of args.
wrongNumberSubscripts(int, int, String) - Static method in class Err
Prints an error message concerning an array reference that does not have a single subscript.

Y

yybegin(int) - Method in class Scanner
Enters a new lexical state
yycharat(int) - Method in class Scanner
Returns the character at position pos from the matched text.
yyclose() - Method in class Scanner
Closes the input stream.
YYEOF - Static variable in class Scanner
This character denotes the end of file
YYINITIAL - Static variable in class Scanner
lexical states
yylength() - Method in class Scanner
Returns the length of the matched text region.
yypushback(int) - Method in class Scanner
Pushes the specified amount of characters back into the input stream.
yyreset(Reader) - Method in class Scanner
Resets the scanner to read from a new input stream.
yystate() - Method in class Scanner
Returns the current lexical state.
yytext() - Method in class Scanner
Returns the text matched by the current regular expression.

A B C D E F G I K L M N O P R S T U V W Y
CS 536 Fall 2007, Project 5