Class Summary |
AssignStmtNode |
An AST node representing an assignment statement "var := expr;" or
"var(subscript) := expr;". |
ASTNode |
A node in an Abstract Syntax Tree for ada536. |
BlockNode |
An AST node representing a block (procedure or function body):
"decls BEGIN stmts END". |
CallExprNode |
An AST node representing a function call: "func(args)" or "func". |
CallStmtNode |
An AST node representing a procedure call statement: "proc(args);" or
"proc;". |
DeclNode |
An AST node representing a declaration of a function, procedure, or
variable. |
DeclNodeList |
Wrapper for a list of Decl. |
Err |
Functions for printing error messages. |
ExitStmtNode |
An AST node representing an exit statement: "EXIT;". |
ExprNode |
An AST node representing an expression. |
ExprNodeList |
Wrapper for a list of ExprNode. |
ForStmtNode |
An AST node representing a for statement:
"FOR variable IN low DOTDOT high LOOP stmts END LOOP;". |
IdNode |
An AST node representing an identifier. |
IfStmtNode |
An AST node representing an "if" statement:
"IF cond THEN stmts [ELSIF stmts]* [ELSE stmts]? END IF;". |
IfStmtNode.IfThen |
A condition and corresponding sequence of statements corresponding to
an if/then or elsif/then clause of an if statement. |
IfThenList |
Wrapper for a list of IfStmtNode.IfThen. |
LiteralNode |
An AST node representing an integer, string, or Boolean literal
(constant). |
NullStmtNode |
An AST node representing a null statement: "NULL;". |
OpExprNode |
An AST node representing an operator applied to one or two operands, as in
"exp1 + exp2" or "NOT exp". |
P3 |
A test program for excercising the scanner of Project 3, CS 536, Fall 2007. |
ParamList |
Wrapper for a list of ProcDeclNode.Param. |
ProcDeclNode |
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.Param |
A formal parameter. |
ReturnStmtNode |
An AST node representing a return statement: "RETURN;" or "RETURN expr;". |
StmtNode |
An AST node representing a statement of some sort. |
StmtNodeList |
Wrapper for a list of StmtNode. |
Token |
Tokens returned by the scanner. |
VarDeclNode |
An AST node representing a variable declaration:
"id : type;" or "id : ARRAY (INT DOTDOT INT) OF type;". |
WhileStmtNode |
An AST node representing a while statement:
"[WHILE cond]? LOOP stmts END LOOP;". |