A B C D E F I L M N O P R S T U V W

A

AssignStmtNode - Class in <Unnamed>
An AST node representing an assignment statement "var := expr;" or "var(subscript) := expr;".
AssignStmtNode(ExprNode, 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.DataType - Enum in <Unnamed>
Codes for ada536 data types

B

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).
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".

C

CallExprNode - Class in <Unnamed>
An AST node representing a function call: "func(args)" or "func".
CallExprNode(IdNode, List<ExprNode>) - Constructor for class CallExprNode
Creates a new CallExprNode.
CallStmtNode - Class in <Unnamed>
An AST node representing a procedure call statement: "proc(args);" or "proc;".
CallStmtNode(IdNode, List<ExprNode>) - Constructor for class CallStmtNode
Creates a new CallStmtNode.
code - Variable in class Token
A code indicating the token class of this token.
column - Variable in class Token
The column of the first character of this token.
cond - Variable in class IfStmtNode.IfThen
The condition on the "if" or "elseif".

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.

E

Err - Class in <Unnamed>
Functions for printing error messages.
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.

I

id - Variable in class ProcDeclNode
The name of the procedure.
id - Variable in class ProcDeclNode.Param
 
IdNode - Class in <Unnamed>
An AST node representing an identifier.
IdNode(String) - 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]? END IF;".
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.
intValue() - Method in class Token
Returns an integer code corresponding to this token.
invalidCharacter(int, int, String) - Static method in class Err
Prints an error message concerning an invalid input character.

L

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) - Constructor for class LiteralNode
Creates a new LiteralNode.

M

main(String[]) - Static method in class P3
Runs the test.
mode - Variable in class ProcDeclNode.Param
 

N

NullStmtNode - Class in <Unnamed>
An AST node representing a null statement: "NULL;".
NullStmtNode() - Constructor for class NullStmtNode
 

O

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

P3 - Class in <Unnamed>
A test program for excercising the scanner of Project 3, CS 536, Fall 2007.
P3() - Constructor for class P3
 
ParamList - Class in <Unnamed>
Wrapper for a list of ProcDeclNode.Param.
ParamList() - Constructor for class ParamList
 
parseError(int, int, String) - Static method in class Err
Prints an error message concerning a syntax error.
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>, ASTNode.DataType, BlockNode) - Constructor for class ProcDeclNode
Creates a new ProcDeclNode.
ProcDeclNode.Param - Class in <Unnamed>
A formal parameter.
ProcDeclNode.Param(IdNode, ASTNode.DataType, ProcDeclNode.Mode) - Constructor for class ProcDeclNode.Param
 

R

ReturnStmtNode - Class in <Unnamed>
An AST node representing a return statement: "RETURN;" or "RETURN expr;".
ReturnStmtNode(ExprNode) - Constructor for class ReturnStmtNode
Creates a new ReturnStmtNode.
returnType - Variable in class ProcDeclNode
The return type of the procedure.

S

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.

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.
toString() - Method in enum ASTNode.DataType
 
toString() - Method in class Token
Returns a printable representation of this token.
type - Variable in class ProcDeclNode.Param
 

U

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 CallExprNode
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 ReturnStmtNode
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.
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.
valueOf(String) - Static method in enum ASTNode.DataType
Returns the enum constant of this type with the specified name.
values() - Static method in enum ASTNode.DataType
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, ASTNode.DataType, int) - Constructor for class VarDeclNode
Creates a new VarDeclNode.

W

WhileStmtNode - Class in <Unnamed>
An AST node representing a while statement: "[WHILE cond]? LOOP stmts END LOOP;".
WhileStmtNode(ExprNode, List<StmtNode>) - Constructor for class WhileStmtNode
Creates a new WhileStmtNode.

A B C D E F I L M N O P R S T U V W