Public Member Functions | |
SymtabPhase () | |
final void | program (AST _t) throws RecognitionException |
final void | programHeading (AST _t) throws RecognitionException |
final void | block (AST _t) throws RecognitionException |
final Vector | identifierList (AST _t) throws RecognitionException |
final void | labelDeclarationPart (AST _t) throws RecognitionException |
final void | constantDefinitionPart (AST _t) throws RecognitionException |
final void | typeDefinitionPart (AST _t) throws RecognitionException |
final void | variableDeclarationPart (AST _t) throws RecognitionException |
final void | procedureAndFunctionDeclarationPart (AST _t) throws RecognitionException |
final void | usesUnitsPart (AST _t) throws RecognitionException |
final void | compoundStatement (AST _t) throws RecognitionException |
final void | constantDefinition (AST _t) throws RecognitionException |
final Constant | constant (AST _t) throws RecognitionException |
final void | typeDefinition (AST _t) throws RecognitionException |
final TypeSpecifier | type (AST _t) throws RecognitionException |
final void | formalParameterList (AST _t) throws RecognitionException |
final TypeSpecifier | resultType (AST _t) throws RecognitionException |
final TypeSpecifier | typeIdentifier (AST _t) throws RecognitionException |
final void | structuredType (AST _t) throws RecognitionException |
final void | variableDeclaration (AST _t) throws RecognitionException |
final void | parameterGroup (AST _t) throws RecognitionException |
final void | functionDeclaration (AST _t) throws RecognitionException |
final void | identifier (AST _t) throws RecognitionException |
final void | label (AST _t) throws RecognitionException |
final void | string (AST _t) throws RecognitionException |
final void | unpackedStructuredType (AST _t) throws RecognitionException |
final void | arrayType (AST _t) throws RecognitionException |
final void | recordType (AST _t) throws RecognitionException |
final void | setType (AST _t) throws RecognitionException |
final void | fileType (AST _t) throws RecognitionException |
final void | typeList (AST _t) throws RecognitionException |
final void | fieldList (AST _t) throws RecognitionException |
final void | fixedPart (AST _t) throws RecognitionException |
final void | variantPart (AST _t) throws RecognitionException |
final void | recordSection (AST _t) throws RecognitionException |
final void | tag (AST _t) throws RecognitionException |
final void | variant (AST _t) throws RecognitionException |
final void | constList (AST _t) throws RecognitionException |
final void | procedureOrFunctionDeclaration (AST _t) throws RecognitionException |
final void | procedureDeclaration (AST _t) throws RecognitionException |
final void | formalParameterSection (AST _t) throws RecognitionException |
final void | statement (AST _t) throws RecognitionException |
final void | unlabelledStatement (AST _t) throws RecognitionException |
final void | simpleStatement (AST _t) throws RecognitionException |
final void | structuredStatement (AST _t) throws RecognitionException |
final void | assignmentStatement (AST _t) throws RecognitionException |
final void | procedureStatement (AST _t) throws RecognitionException |
final void | gotoStatement (AST _t) throws RecognitionException |
final void | variable (AST _t) throws RecognitionException |
final void | expression (AST _t) throws RecognitionException |
final void | functionDesignator (AST _t) throws RecognitionException |
final void | set (AST _t) throws RecognitionException |
final void | parameterList (AST _t) throws RecognitionException |
final void | actualParameter (AST _t) throws RecognitionException |
final void | element (AST _t) throws RecognitionException |
final void | conditionalStatement (AST _t) throws RecognitionException |
final void | repetetiveStatement (AST _t) throws RecognitionException |
final void | withStatement (AST _t) throws RecognitionException |
final void | statements (AST _t) throws RecognitionException |
final void | ifStatement (AST _t) throws RecognitionException |
final void | caseStatement (AST _t) throws RecognitionException |
final void | caseListElement (AST _t) throws RecognitionException |
final void | whileStatement (AST _t) throws RecognitionException |
final void | repeatStatement (AST _t) throws RecognitionException |
final void | forStatement (AST _t) throws RecognitionException |
final void | forList (AST _t) throws RecognitionException |
final void | initialValue (AST _t) throws RecognitionException |
final void | finalValue (AST _t) throws RecognitionException |
final void | recordVariableList (AST _t) throws RecognitionException |
Public Attributes | |
File | thisUnit |
Static Public Attributes | |
static final String[] | _tokenNames |
static final BitSet | _tokenSet_0 = new BitSet(mk_tokenSet_0()) |
static final BitSet | _tokenSet_1 = new BitSet(mk_tokenSet_1()) |
static final BitSet | _tokenSet_2 = new BitSet(mk_tokenSet_2()) |
static final BitSet | _tokenSet_3 = new BitSet(mk_tokenSet_3()) |
static final BitSet | _tokenSet_4 = new BitSet(mk_tokenSet_4()) |
static final BitSet | _tokenSet_5 = new BitSet(mk_tokenSet_5()) |
static final BitSet | _tokenSet_6 = new BitSet(mk_tokenSet_6()) |
Package Attributes | |
Stack | scopes = new Stack() |
Stack | usesScopes = new Stack() |
SymtabPhase.SymtabPhase | ( | ) |
References _tokenNames, and antlr.TreeParser.tokenNames.
final void SymtabPhase.actualParameter | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, expression(), and antlr.TreeParser.reportError().
Referenced by parameterList().
final void SymtabPhase.arrayType | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.assignmentStatement | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.block | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, compoundStatement(), SymtabPhaseTokenTypes.CONST, constantDefinitionPart(), SymtabPhaseTokenTypes.FUNCTION, SymtabPhaseTokenTypes.IMPLEMENTATION, SymtabPhaseTokenTypes.LABEL, labelDeclarationPart(), antlr.TreeParser.match(), SymtabPhaseTokenTypes.PROCEDURE, procedureAndFunctionDeclarationPart(), antlr.TreeParser.reportError(), scopes, thisUnit, SymtabPhaseTokenTypes.TYPE, typeDefinitionPart(), SymtabPhaseTokenTypes.USES, usesUnitsPart(), SymtabPhaseTokenTypes.VAR, and variableDeclarationPart().
Referenced by functionDeclaration(), procedureDeclaration(), and program().
final void SymtabPhase.caseListElement | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.caseStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.BLOCK, SymtabPhaseTokenTypes.CASE, caseListElement(), SymtabPhaseTokenTypes.COLON, expression(), antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), antlr.TreeParser.reportError(), and statements().
Referenced by conditionalStatement().
final void SymtabPhase.compoundStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.reportError(), and statements().
Referenced by block(), and structuredStatement().
final void SymtabPhase.conditionalStatement | ( | AST | _t | ) | throws RecognitionException |
final Constant SymtabPhase.constant | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.CHR, antlr.collections.AST.getNextSibling(), antlr.CommonAST.getText(), SymtabPhaseTokenTypes.IDENT, antlr.TreeParser.match(), SymtabPhaseTokenTypes.MINUS, SymtabPhaseTokenTypes.NUM_INT, SymtabPhaseTokenTypes.NUM_REAL, SymtabPhaseTokenTypes.PLUS, antlr.TreeParser.reportError(), and SymtabPhaseTokenTypes.STRING_LITERAL.
Referenced by constantDefinition(), constList(), and type().
final void SymtabPhase.constantDefinition | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, Scope.addSymbol(), antlr.TreeParser.ASTNULL, constant(), SymtabPhaseTokenTypes.EQUAL, antlr.collections.AST.getNextSibling(), antlr.CommonAST.getText(), SymtabPhaseTokenTypes.IDENT, antlr.TreeParser.match(), antlr.TreeParser.reportError(), scopes, Symbol.setName(), and PascalAST.symbol.
Referenced by constantDefinitionPart().
final void SymtabPhase.constantDefinitionPart | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.constList | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, _tokenSet_2, antlr.TreeParser.ASTNULL, constant(), SymtabPhaseTokenTypes.CONSTLIST, antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), antlr.collections.impl.BitSet.member(), and antlr.TreeParser.reportError().
Referenced by caseListElement(), and variant().
final void SymtabPhase.element | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.AND, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.AT, SymtabPhaseTokenTypes.CHR, SymtabPhaseTokenTypes.DIV, SymtabPhaseTokenTypes.DOT, SymtabPhaseTokenTypes.DOTDOT, SymtabPhaseTokenTypes.EQUAL, expression(), SymtabPhaseTokenTypes.FUNC_CALL, SymtabPhaseTokenTypes.GE, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.GT, SymtabPhaseTokenTypes.IDENT, SymtabPhaseTokenTypes.IN, SymtabPhaseTokenTypes.LBRACK, SymtabPhaseTokenTypes.LBRACK2, SymtabPhaseTokenTypes.LE, SymtabPhaseTokenTypes.LT, antlr.TreeParser.match(), SymtabPhaseTokenTypes.MINUS, SymtabPhaseTokenTypes.MOD, SymtabPhaseTokenTypes.NIL, SymtabPhaseTokenTypes.NOT, SymtabPhaseTokenTypes.NOT_EQUAL, SymtabPhaseTokenTypes.NUM_INT, SymtabPhaseTokenTypes.NUM_REAL, SymtabPhaseTokenTypes.OR, SymtabPhaseTokenTypes.PLUS, SymtabPhaseTokenTypes.POINTER, antlr.TreeParser.reportError(), SymtabPhaseTokenTypes.SET, SymtabPhaseTokenTypes.SLASH, SymtabPhaseTokenTypes.STAR, and SymtabPhaseTokenTypes.STRING_LITERAL.
Referenced by set().
final void SymtabPhase.expression | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.AND, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.AT, SymtabPhaseTokenTypes.CHR, SymtabPhaseTokenTypes.DIV, SymtabPhaseTokenTypes.DOT, SymtabPhaseTokenTypes.EQUAL, SymtabPhaseTokenTypes.FUNC_CALL, functionDesignator(), SymtabPhaseTokenTypes.GE, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.GT, SymtabPhaseTokenTypes.IDENT, SymtabPhaseTokenTypes.IN, SymtabPhaseTokenTypes.LBRACK, SymtabPhaseTokenTypes.LBRACK2, SymtabPhaseTokenTypes.LE, SymtabPhaseTokenTypes.LT, antlr.TreeParser.match(), SymtabPhaseTokenTypes.MINUS, SymtabPhaseTokenTypes.MOD, SymtabPhaseTokenTypes.NIL, SymtabPhaseTokenTypes.NOT, SymtabPhaseTokenTypes.NOT_EQUAL, SymtabPhaseTokenTypes.NUM_INT, SymtabPhaseTokenTypes.NUM_REAL, SymtabPhaseTokenTypes.OR, SymtabPhaseTokenTypes.PLUS, SymtabPhaseTokenTypes.POINTER, antlr.TreeParser.reportError(), SymtabPhaseTokenTypes.SET, SymtabPhaseTokenTypes.SLASH, SymtabPhaseTokenTypes.STAR, string(), SymtabPhaseTokenTypes.STRING_LITERAL, and variable().
Referenced by actualParameter(), assignmentStatement(), caseStatement(), element(), finalValue(), ifStatement(), initialValue(), repeatStatement(), variable(), and whileStatement().
final void SymtabPhase.fieldList | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.CASE, SymtabPhaseTokenTypes.FIELD, SymtabPhaseTokenTypes.FIELDLIST, fixedPart(), antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), antlr.TreeParser.reportError(), and variantPart().
Referenced by recordType(), and variant().
final void SymtabPhase.fileType | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.ARRAY, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.BOOLEAN, SymtabPhaseTokenTypes.CHAR, SymtabPhaseTokenTypes.DOTDOT, SymtabPhaseTokenTypes.FILE, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.IDENT, SymtabPhaseTokenTypes.INTEGER, antlr.TreeParser.match(), SymtabPhaseTokenTypes.PACKED, SymtabPhaseTokenTypes.POINTER, SymtabPhaseTokenTypes.REAL, SymtabPhaseTokenTypes.RECORD, antlr.TreeParser.reportError(), SymtabPhaseTokenTypes.SCALARTYPE, SymtabPhaseTokenTypes.SET, SymtabPhaseTokenTypes.STRING, and type().
Referenced by unpackedStructuredType().
final void SymtabPhase.finalValue | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, expression(), and antlr.TreeParser.reportError().
Referenced by forList().
final void SymtabPhase.fixedPart | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.FIELD, recordSection(), and antlr.TreeParser.reportError().
Referenced by fieldList().
final void SymtabPhase.forList | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.formalParameterList | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, _tokenSet_0, SymtabPhaseTokenTypes.ARGDECLS, antlr.TreeParser.ASTNULL, formalParameterSection(), antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), antlr.collections.impl.BitSet.member(), and antlr.TreeParser.reportError().
Referenced by functionDeclaration(), procedureDeclaration(), and typeDefinition().
final void SymtabPhase.formalParameterSection | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.ARGDECL, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.FUNCTION, antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), parameterGroup(), SymtabPhaseTokenTypes.PROCEDURE, antlr.TreeParser.reportError(), and SymtabPhaseTokenTypes.VAR.
Referenced by formalParameterList().
final void SymtabPhase.forStatement | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.functionDeclaration | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.ARGDECLS, antlr.TreeParser.ASTNULL, block(), SymtabPhaseTokenTypes.BOOLEAN, SymtabPhaseTokenTypes.CHAR, formalParameterList(), SymtabPhaseTokenTypes.FUNCTION, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.IDENT, SymtabPhaseTokenTypes.INTEGER, antlr.TreeParser.match(), SymtabPhaseTokenTypes.REAL, antlr.TreeParser.reportError(), resultType(), SymtabPhaseTokenTypes.STRING, and PascalAST.symbol.
Referenced by procedureOrFunctionDeclaration().
final void SymtabPhase.functionDesignator | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.ARGLIST, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.FUNC_CALL, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.IDENT, antlr.TreeParser.match(), parameterList(), and antlr.TreeParser.reportError().
Referenced by expression().
final void SymtabPhase.gotoStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.GOTO, label(), antlr.TreeParser.match(), and antlr.TreeParser.reportError().
Referenced by simpleStatement().
final void SymtabPhase.identifier | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.IDENT, antlr.TreeParser.match(), and antlr.TreeParser.reportError().
Referenced by tag().
final Vector SymtabPhase.identifierList | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, antlr.collections.AST.getNextSibling(), antlr.CommonAST.getText(), SymtabPhaseTokenTypes.IDENT, SymtabPhaseTokenTypes.IDLIST, antlr.TreeParser.match(), and antlr.TreeParser.reportError().
Referenced by parameterGroup(), programHeading(), recordSection(), type(), usesUnitsPart(), and variableDeclaration().
final void SymtabPhase.ifStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.ASSIGN, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.BLOCK, SymtabPhaseTokenTypes.CASE, SymtabPhaseTokenTypes.COLON, expression(), SymtabPhaseTokenTypes.FOR, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.GOTO, SymtabPhaseTokenTypes.IF, antlr.TreeParser.match(), SymtabPhaseTokenTypes.PROC_CALL, SymtabPhaseTokenTypes.REPEAT, antlr.TreeParser.reportError(), statement(), SymtabPhaseTokenTypes.WHILE, and SymtabPhaseTokenTypes.WITH.
Referenced by conditionalStatement().
final void SymtabPhase.initialValue | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, expression(), and antlr.TreeParser.reportError().
Referenced by forList().
final void SymtabPhase.label | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.match(), SymtabPhaseTokenTypes.NUM_INT, and antlr.TreeParser.reportError().
Referenced by gotoStatement(), labelDeclarationPart(), and statement().
final void SymtabPhase.labelDeclarationPart | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.parameterGroup | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, Scope.addSymbol(), SymtabPhaseTokenTypes.ARGDECL, antlr.TreeParser.ASTNULL, antlr.collections.AST.getNextSibling(), identifierList(), antlr.TreeParser.match(), antlr.TreeParser.reportError(), scopes, PascalAST.symbol, and typeIdentifier().
Referenced by formalParameterSection().
final void SymtabPhase.parameterList | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, _tokenSet_3, actualParameter(), SymtabPhaseTokenTypes.ARGLIST, antlr.TreeParser.ASTNULL, antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), antlr.collections.impl.BitSet.member(), and antlr.TreeParser.reportError().
Referenced by functionDesignator(), and procedureStatement().
final void SymtabPhase.procedureAndFunctionDeclarationPart | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, procedureOrFunctionDeclaration(), and antlr.TreeParser.reportError().
Referenced by block().
final void SymtabPhase.procedureDeclaration | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.ARGDECLS, antlr.TreeParser.ASTNULL, block(), SymtabPhaseTokenTypes.BLOCK, SymtabPhaseTokenTypes.CONST, formalParameterList(), SymtabPhaseTokenTypes.FUNCTION, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.IDENT, SymtabPhaseTokenTypes.IMPLEMENTATION, SymtabPhaseTokenTypes.LABEL, antlr.TreeParser.match(), SymtabPhaseTokenTypes.PROCEDURE, antlr.TreeParser.reportError(), SymtabPhaseTokenTypes.TYPE, SymtabPhaseTokenTypes.USES, and SymtabPhaseTokenTypes.VAR.
Referenced by procedureOrFunctionDeclaration().
final void SymtabPhase.procedureOrFunctionDeclaration | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.procedureStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.ARGLIST, antlr.TreeParser.ASTNULL, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.IDENT, antlr.TreeParser.match(), parameterList(), SymtabPhaseTokenTypes.PROC_CALL, and antlr.TreeParser.reportError().
Referenced by simpleStatement().
final void SymtabPhase.program | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, block(), programHeading(), antlr.TreeParser.reportError(), and scopes.
Referenced by PascalParser.parseFile().
final void SymtabPhase.programHeading | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, Scope.addSymbol(), antlr.TreeParser.ASTNULL, antlr.collections.AST.getNextSibling(), antlr.CommonAST.getText(), SymtabPhaseTokenTypes.IDENT, identifierList(), antlr.TreeParser.match(), SymtabPhaseTokenTypes.PROGRAM, antlr.TreeParser.reportError(), scopes, thisUnit, and SymtabPhaseTokenTypes.UNIT.
Referenced by program().
final void SymtabPhase.recordSection | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.recordType | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.recordVariableList | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, _tokenSet_6, antlr.TreeParser.ASTNULL, antlr.collections.impl.BitSet.member(), antlr.TreeParser.reportError(), and variable().
Referenced by withStatement().
final void SymtabPhase.repeatStatement | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.repetetiveStatement | ( | AST | _t | ) | throws RecognitionException |
final TypeSpecifier SymtabPhase.resultType | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.reportError(), and typeIdentifier().
Referenced by functionDeclaration(), and typeDefinition().
final void SymtabPhase.set | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.setType | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.simpleStatement | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.statement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.ASSIGN, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.BLOCK, SymtabPhaseTokenTypes.CASE, SymtabPhaseTokenTypes.COLON, SymtabPhaseTokenTypes.FOR, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.GOTO, SymtabPhaseTokenTypes.IF, label(), antlr.TreeParser.match(), SymtabPhaseTokenTypes.PROC_CALL, SymtabPhaseTokenTypes.REPEAT, antlr.TreeParser.reportError(), unlabelledStatement(), SymtabPhaseTokenTypes.WHILE, and SymtabPhaseTokenTypes.WITH.
Referenced by caseListElement(), forStatement(), ifStatement(), statements(), whileStatement(), and withStatement().
final void SymtabPhase.statements | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, _tokenSet_5, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.BLOCK, antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), antlr.collections.impl.BitSet.member(), antlr.TreeParser.reportError(), and statement().
Referenced by caseStatement(), compoundStatement(), and repeatStatement().
final void SymtabPhase.string | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.match(), antlr.TreeParser.reportError(), and SymtabPhaseTokenTypes.STRING_LITERAL.
Referenced by expression().
final void SymtabPhase.structuredStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.BLOCK, SymtabPhaseTokenTypes.CASE, compoundStatement(), conditionalStatement(), SymtabPhaseTokenTypes.FOR, SymtabPhaseTokenTypes.IF, SymtabPhaseTokenTypes.REPEAT, repetetiveStatement(), antlr.TreeParser.reportError(), SymtabPhaseTokenTypes.WHILE, SymtabPhaseTokenTypes.WITH, and withStatement().
Referenced by unlabelledStatement().
final void SymtabPhase.structuredType | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.ARRAY, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.FILE, antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), SymtabPhaseTokenTypes.PACKED, SymtabPhaseTokenTypes.RECORD, antlr.TreeParser.reportError(), SymtabPhaseTokenTypes.SET, and unpackedStructuredType().
Referenced by type().
final void SymtabPhase.tag | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, antlr.collections.AST.getNextSibling(), identifier(), antlr.TreeParser.match(), antlr.TreeParser.reportError(), typeIdentifier(), SymtabPhaseTokenTypes.VARIANT_TAG, and SymtabPhaseTokenTypes.VARIANT_TAG_NO_ID.
Referenced by variantPart().
final TypeSpecifier SymtabPhase.type | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.ARRAY, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.BOOLEAN, SymtabPhaseTokenTypes.CHAR, constant(), SymtabPhaseTokenTypes.DOTDOT, SymtabPhaseTokenTypes.FILE, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.IDENT, identifierList(), SymtabPhaseTokenTypes.INTEGER, antlr.TreeParser.match(), SymtabPhaseTokenTypes.PACKED, SymtabPhaseTokenTypes.POINTER, SymtabPhaseTokenTypes.REAL, SymtabPhaseTokenTypes.RECORD, antlr.TreeParser.reportError(), SymtabPhaseTokenTypes.SCALARTYPE, SymtabPhaseTokenTypes.SET, SymtabPhaseTokenTypes.STRING, structuredType(), and typeIdentifier().
Referenced by arrayType(), fileType(), recordSection(), setType(), typeDefinition(), typeList(), and variableDeclaration().
final void SymtabPhase.typeDefinition | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.ARGDECLS, SymtabPhaseTokenTypes.ARRAY, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.BOOLEAN, SymtabPhaseTokenTypes.CHAR, SymtabPhaseTokenTypes.DOTDOT, SymtabPhaseTokenTypes.FILE, formalParameterList(), SymtabPhaseTokenTypes.FUNCTION, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.IDENT, SymtabPhaseTokenTypes.INTEGER, antlr.TreeParser.match(), SymtabPhaseTokenTypes.PACKED, SymtabPhaseTokenTypes.POINTER, SymtabPhaseTokenTypes.PROCEDURE, SymtabPhaseTokenTypes.REAL, SymtabPhaseTokenTypes.RECORD, antlr.TreeParser.reportError(), resultType(), SymtabPhaseTokenTypes.SCALARTYPE, SymtabPhaseTokenTypes.SET, SymtabPhaseTokenTypes.STRING, PascalAST.symbol, type(), and SymtabPhaseTokenTypes.TYPEDECL.
Referenced by typeDefinitionPart().
final void SymtabPhase.typeDefinitionPart | ( | AST | _t | ) | throws RecognitionException |
final TypeSpecifier SymtabPhase.typeIdentifier | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.BOOLEAN, SymtabPhaseTokenTypes.CHAR, antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.IDENT, SymtabPhaseTokenTypes.INTEGER, antlr.TreeParser.match(), SymtabPhaseTokenTypes.NUM_INT, SymtabPhaseTokenTypes.NUM_REAL, SymtabPhaseTokenTypes.REAL, antlr.TreeParser.reportError(), and SymtabPhaseTokenTypes.STRING.
Referenced by parameterGroup(), resultType(), tag(), and type().
final void SymtabPhase.typeList | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.unlabelledStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, SymtabPhaseTokenTypes.ASSIGN, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.BLOCK, SymtabPhaseTokenTypes.CASE, SymtabPhaseTokenTypes.FOR, SymtabPhaseTokenTypes.GOTO, SymtabPhaseTokenTypes.IF, SymtabPhaseTokenTypes.PROC_CALL, SymtabPhaseTokenTypes.REPEAT, antlr.TreeParser.reportError(), simpleStatement(), structuredStatement(), SymtabPhaseTokenTypes.WHILE, and SymtabPhaseTokenTypes.WITH.
Referenced by statement().
final void SymtabPhase.unpackedStructuredType | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.usesUnitsPart | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, antlr.BaseAST.getFirstChild(), antlr.BaseAST.getNextSibling(), antlr.collections.AST.getNextSibling(), antlr.CommonAST.getText(), identifierList(), antlr.TreeParser.match(), antlr.TreeParser.reportError(), SymtabPhaseTokenTypes.USES, and usesScopes.
Referenced by block().
final void SymtabPhase.variable | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, _tokenSet_3, antlr.TreeParser.ASTNULL, SymtabPhaseTokenTypes.AT, SymtabPhaseTokenTypes.DOT, expression(), antlr.collections.AST.getNextSibling(), SymtabPhaseTokenTypes.IDENT, SymtabPhaseTokenTypes.LBRACK, SymtabPhaseTokenTypes.LBRACK2, antlr.TreeParser.match(), antlr.collections.impl.BitSet.member(), SymtabPhaseTokenTypes.POINTER, and antlr.TreeParser.reportError().
Referenced by assignmentStatement(), expression(), and recordVariableList().
final void SymtabPhase.variableDeclaration | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, Scope.addSymbol(), antlr.TreeParser.ASTNULL, antlr.collections.AST.getNextSibling(), identifierList(), antlr.TreeParser.match(), antlr.TreeParser.reportError(), scopes, PascalAST.symbol, type(), and SymtabPhaseTokenTypes.VARDECL.
Referenced by variableDeclarationPart().
final void SymtabPhase.variableDeclarationPart | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.variant | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.variantPart | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.whileStatement | ( | AST | _t | ) | throws RecognitionException |
final void SymtabPhase.withStatement | ( | AST | _t | ) | throws RecognitionException |
final String [] SymtabPhase._tokenNames [static] |
Referenced by SymtabPhase().
final BitSet SymtabPhase._tokenSet_0 = new BitSet(mk_tokenSet_0()) [static] |
Referenced by formalParameterList().
final BitSet SymtabPhase._tokenSet_1 = new BitSet(mk_tokenSet_1()) [static] |
Referenced by typeList().
final BitSet SymtabPhase._tokenSet_2 = new BitSet(mk_tokenSet_2()) [static] |
Referenced by constList().
final BitSet SymtabPhase._tokenSet_3 = new BitSet(mk_tokenSet_3()) [static] |
Referenced by parameterList(), and variable().
final BitSet SymtabPhase._tokenSet_4 = new BitSet(mk_tokenSet_4()) [static] |
Referenced by set().
final BitSet SymtabPhase._tokenSet_5 = new BitSet(mk_tokenSet_5()) [static] |
Referenced by statements().
final BitSet SymtabPhase._tokenSet_6 = new BitSet(mk_tokenSet_6()) [static] |
Referenced by recordVariableList().
Stack SymtabPhase.scopes = new Stack() [package] |
Referenced by block(), constantDefinition(), parameterGroup(), program(), programHeading(), and variableDeclaration().
File SymtabPhase.thisUnit |
Referenced by block(), and programHeading().
Stack SymtabPhase.usesScopes = new Stack() [package] |
Referenced by usesUnitsPart().