Public Member Functions | |
PascalTreeParserSuper () | |
final void | program (AST _t) throws RecognitionException |
final void | programHeading (AST _t) throws RecognitionException |
final void | block (AST _t) throws RecognitionException |
final void | identifierList (AST _t) throws RecognitionException |
final void | identifier (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 | label (AST _t) throws RecognitionException |
final void | constantDefinition (AST _t) throws RecognitionException |
final void | constant (AST _t) throws RecognitionException |
final void | string (AST _t) throws RecognitionException |
final void | typeDefinition (AST _t) throws RecognitionException |
final void | type (AST _t) throws RecognitionException |
final void | formalParameterList (AST _t) throws RecognitionException |
final void | resultType (AST _t) throws RecognitionException |
final void | typeIdentifier (AST _t) throws RecognitionException |
final void | structuredType (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 | variableDeclaration (AST _t) throws RecognitionException |
final void | procedureOrFunctionDeclaration (AST _t) throws RecognitionException |
final void | procedureDeclaration (AST _t) throws RecognitionException |
final void | functionDeclaration (AST _t) throws RecognitionException |
final void | formalParameterSection (AST _t) throws RecognitionException |
final void | parameterGroup (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 |
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()) |
PascalTreeParserSuper.PascalTreeParserSuper | ( | ) |
References _tokenNames, and antlr.TreeParser.tokenNames.
final void PascalTreeParserSuper.actualParameter | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, expression(), and antlr.TreeParser.reportError().
Referenced by parameterList().
final void PascalTreeParserSuper.arrayType | ( | AST | _t | ) | throws RecognitionException |
Note here that the syntactic diff between brackets disappears. If the brackets mean different things semantically, we need two different alternatives here.
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ARRAY, antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), antlr.TreeParser.reportError(), type(), and typeList().
Referenced by unpackedStructuredType().
final void PascalTreeParserSuper.assignmentStatement | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.block | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, compoundStatement(), PascalTreeParserSuperTokenTypes.CONST, constantDefinitionPart(), PascalTreeParserSuperTokenTypes.FUNCTION, PascalTreeParserSuperTokenTypes.IMPLEMENTATION, PascalTreeParserSuperTokenTypes.LABEL, labelDeclarationPart(), antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.PROCEDURE, procedureAndFunctionDeclarationPart(), antlr.TreeParser.reportError(), PascalTreeParserSuperTokenTypes.TYPE, typeDefinitionPart(), PascalTreeParserSuperTokenTypes.USES, usesUnitsPart(), PascalTreeParserSuperTokenTypes.VAR, and variableDeclarationPart().
Referenced by functionDeclaration(), procedureDeclaration(), and program().
final void PascalTreeParserSuper.caseListElement | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.caseStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.BLOCK, PascalTreeParserSuperTokenTypes.CASE, caseListElement(), PascalTreeParserSuperTokenTypes.COLON, expression(), antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), antlr.TreeParser.reportError(), and statements().
Referenced by conditionalStatement().
final void PascalTreeParserSuper.compoundStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.reportError(), and statements().
Referenced by block(), and structuredStatement().
final void PascalTreeParserSuper.conditionalStatement | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.constant | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.CHR, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.IDENT, antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.MINUS, PascalTreeParserSuperTokenTypes.NUM_INT, PascalTreeParserSuperTokenTypes.NUM_REAL, PascalTreeParserSuperTokenTypes.PLUS, antlr.TreeParser.reportError(), and PascalTreeParserSuperTokenTypes.STRING_LITERAL.
Referenced by constantDefinition(), constList(), and type().
final void PascalTreeParserSuper.constantDefinition | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.constantDefinitionPart | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.constList | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, _tokenSet_2, antlr.TreeParser.ASTNULL, constant(), PascalTreeParserSuperTokenTypes.CONSTLIST, antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), antlr.collections.impl.BitSet.member(), and antlr.TreeParser.reportError().
Referenced by caseListElement(), and variant().
final void PascalTreeParserSuper.element | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.AND, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.AT, PascalTreeParserSuperTokenTypes.CHR, PascalTreeParserSuperTokenTypes.DIV, PascalTreeParserSuperTokenTypes.DOT, PascalTreeParserSuperTokenTypes.DOTDOT, PascalTreeParserSuperTokenTypes.EQUAL, expression(), PascalTreeParserSuperTokenTypes.FUNC_CALL, PascalTreeParserSuperTokenTypes.GE, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.GT, PascalTreeParserSuperTokenTypes.IDENT, PascalTreeParserSuperTokenTypes.IN, PascalTreeParserSuperTokenTypes.LBRACK, PascalTreeParserSuperTokenTypes.LBRACK2, PascalTreeParserSuperTokenTypes.LE, PascalTreeParserSuperTokenTypes.LT, antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.MINUS, PascalTreeParserSuperTokenTypes.MOD, PascalTreeParserSuperTokenTypes.NIL, PascalTreeParserSuperTokenTypes.NOT, PascalTreeParserSuperTokenTypes.NOT_EQUAL, PascalTreeParserSuperTokenTypes.NUM_INT, PascalTreeParserSuperTokenTypes.NUM_REAL, PascalTreeParserSuperTokenTypes.OR, PascalTreeParserSuperTokenTypes.PLUS, PascalTreeParserSuperTokenTypes.POINTER, antlr.TreeParser.reportError(), PascalTreeParserSuperTokenTypes.SET, PascalTreeParserSuperTokenTypes.SLASH, PascalTreeParserSuperTokenTypes.STAR, and PascalTreeParserSuperTokenTypes.STRING_LITERAL.
Referenced by set().
final void PascalTreeParserSuper.expression | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.AND, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.AT, PascalTreeParserSuperTokenTypes.CHR, PascalTreeParserSuperTokenTypes.DIV, PascalTreeParserSuperTokenTypes.DOT, PascalTreeParserSuperTokenTypes.EQUAL, PascalTreeParserSuperTokenTypes.FUNC_CALL, functionDesignator(), PascalTreeParserSuperTokenTypes.GE, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.GT, PascalTreeParserSuperTokenTypes.IDENT, PascalTreeParserSuperTokenTypes.IN, PascalTreeParserSuperTokenTypes.LBRACK, PascalTreeParserSuperTokenTypes.LBRACK2, PascalTreeParserSuperTokenTypes.LE, PascalTreeParserSuperTokenTypes.LT, antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.MINUS, PascalTreeParserSuperTokenTypes.MOD, PascalTreeParserSuperTokenTypes.NIL, PascalTreeParserSuperTokenTypes.NOT, PascalTreeParserSuperTokenTypes.NOT_EQUAL, PascalTreeParserSuperTokenTypes.NUM_INT, PascalTreeParserSuperTokenTypes.NUM_REAL, PascalTreeParserSuperTokenTypes.OR, PascalTreeParserSuperTokenTypes.PLUS, PascalTreeParserSuperTokenTypes.POINTER, antlr.TreeParser.reportError(), PascalTreeParserSuperTokenTypes.SET, PascalTreeParserSuperTokenTypes.SLASH, PascalTreeParserSuperTokenTypes.STAR, string(), PascalTreeParserSuperTokenTypes.STRING_LITERAL, and variable().
Referenced by actualParameter(), assignmentStatement(), caseStatement(), element(), finalValue(), ifStatement(), initialValue(), repeatStatement(), variable(), and whileStatement().
final void PascalTreeParserSuper.fieldList | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.CASE, PascalTreeParserSuperTokenTypes.FIELD, PascalTreeParserSuperTokenTypes.FIELDLIST, fixedPart(), antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), antlr.TreeParser.reportError(), and variantPart().
Referenced by recordType(), and variant().
final void PascalTreeParserSuper.fileType | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ARRAY, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.BOOLEAN, PascalTreeParserSuperTokenTypes.CHAR, PascalTreeParserSuperTokenTypes.DOTDOT, PascalTreeParserSuperTokenTypes.FILE, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.IDENT, PascalTreeParserSuperTokenTypes.INTEGER, antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.PACKED, PascalTreeParserSuperTokenTypes.POINTER, PascalTreeParserSuperTokenTypes.REAL, PascalTreeParserSuperTokenTypes.RECORD, antlr.TreeParser.reportError(), PascalTreeParserSuperTokenTypes.SCALARTYPE, PascalTreeParserSuperTokenTypes.SET, PascalTreeParserSuperTokenTypes.STRING, and type().
Referenced by unpackedStructuredType().
final void PascalTreeParserSuper.finalValue | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, expression(), and antlr.TreeParser.reportError().
Referenced by forList().
final void PascalTreeParserSuper.fixedPart | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.FIELD, recordSection(), and antlr.TreeParser.reportError().
Referenced by fieldList().
final void PascalTreeParserSuper.forList | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.DOWNTO, finalValue(), antlr.collections.AST.getNextSibling(), initialValue(), antlr.TreeParser.match(), antlr.TreeParser.reportError(), and PascalTreeParserSuperTokenTypes.TO.
Referenced by forStatement().
final void PascalTreeParserSuper.formalParameterList | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, _tokenSet_0, PascalTreeParserSuperTokenTypes.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 PascalTreeParserSuper.formalParameterSection | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ARGDECL, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.FUNCTION, antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), parameterGroup(), PascalTreeParserSuperTokenTypes.PROCEDURE, antlr.TreeParser.reportError(), and PascalTreeParserSuperTokenTypes.VAR.
Referenced by formalParameterList().
final void PascalTreeParserSuper.forStatement | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.functionDeclaration | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ARGDECLS, antlr.TreeParser.ASTNULL, block(), PascalTreeParserSuperTokenTypes.BOOLEAN, PascalTreeParserSuperTokenTypes.CHAR, formalParameterList(), PascalTreeParserSuperTokenTypes.FUNCTION, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.IDENT, PascalTreeParserSuperTokenTypes.INTEGER, antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.REAL, antlr.TreeParser.reportError(), resultType(), and PascalTreeParserSuperTokenTypes.STRING.
Referenced by procedureOrFunctionDeclaration().
final void PascalTreeParserSuper.functionDesignator | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ARGLIST, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.FUNC_CALL, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.IDENT, antlr.TreeParser.match(), parameterList(), and antlr.TreeParser.reportError().
Referenced by expression().
final void PascalTreeParserSuper.gotoStatement | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.identifier | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.IDENT, antlr.TreeParser.match(), and antlr.TreeParser.reportError().
Referenced by tag().
final void PascalTreeParserSuper.identifierList | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.IDENT, PascalTreeParserSuperTokenTypes.IDLIST, antlr.TreeParser.match(), and antlr.TreeParser.reportError().
Referenced by parameterGroup(), programHeading(), recordSection(), type(), usesUnitsPart(), and variableDeclaration().
final void PascalTreeParserSuper.ifStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ASSIGN, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.BLOCK, PascalTreeParserSuperTokenTypes.CASE, PascalTreeParserSuperTokenTypes.COLON, expression(), PascalTreeParserSuperTokenTypes.FOR, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.GOTO, PascalTreeParserSuperTokenTypes.IF, antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.PROC_CALL, PascalTreeParserSuperTokenTypes.REPEAT, antlr.TreeParser.reportError(), statement(), PascalTreeParserSuperTokenTypes.WHILE, and PascalTreeParserSuperTokenTypes.WITH.
Referenced by conditionalStatement().
final void PascalTreeParserSuper.initialValue | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, expression(), and antlr.TreeParser.reportError().
Referenced by forList().
final void PascalTreeParserSuper.label | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.NUM_INT, and antlr.TreeParser.reportError().
Referenced by gotoStatement(), labelDeclarationPart(), and statement().
final void PascalTreeParserSuper.labelDeclarationPart | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.parameterGroup | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.parameterList | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, _tokenSet_3, actualParameter(), PascalTreeParserSuperTokenTypes.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 PascalTreeParserSuper.procedureAndFunctionDeclarationPart | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, procedureOrFunctionDeclaration(), and antlr.TreeParser.reportError().
Referenced by block().
final void PascalTreeParserSuper.procedureDeclaration | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ARGDECLS, antlr.TreeParser.ASTNULL, block(), PascalTreeParserSuperTokenTypes.BLOCK, PascalTreeParserSuperTokenTypes.CONST, formalParameterList(), PascalTreeParserSuperTokenTypes.FUNCTION, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.IDENT, PascalTreeParserSuperTokenTypes.IMPLEMENTATION, PascalTreeParserSuperTokenTypes.LABEL, antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.PROCEDURE, antlr.TreeParser.reportError(), PascalTreeParserSuperTokenTypes.TYPE, PascalTreeParserSuperTokenTypes.USES, and PascalTreeParserSuperTokenTypes.VAR.
Referenced by procedureOrFunctionDeclaration().
final void PascalTreeParserSuper.procedureOrFunctionDeclaration | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.procedureStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ARGLIST, antlr.TreeParser.ASTNULL, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.IDENT, antlr.TreeParser.match(), parameterList(), PascalTreeParserSuperTokenTypes.PROC_CALL, and antlr.TreeParser.reportError().
Referenced by simpleStatement().
final void PascalTreeParserSuper.program | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, block(), programHeading(), and antlr.TreeParser.reportError().
final void PascalTreeParserSuper.programHeading | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.IDENT, identifierList(), antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.PROGRAM, antlr.TreeParser.reportError(), and PascalTreeParserSuperTokenTypes.UNIT.
Referenced by program().
final void PascalTreeParserSuper.recordSection | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.recordType | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.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 PascalTreeParserSuper.repeatStatement | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.repetetiveStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.FOR, forStatement(), PascalTreeParserSuperTokenTypes.REPEAT, repeatStatement(), antlr.TreeParser.reportError(), PascalTreeParserSuperTokenTypes.WHILE, and whileStatement().
Referenced by structuredStatement().
final void PascalTreeParserSuper.resultType | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.reportError(), and typeIdentifier().
Referenced by functionDeclaration(), and typeDefinition().
final void PascalTreeParserSuper.set | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.setType | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.simpleStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ASSIGN, assignmentStatement(), antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.GOTO, gotoStatement(), PascalTreeParserSuperTokenTypes.PROC_CALL, procedureStatement(), and antlr.TreeParser.reportError().
Referenced by unlabelledStatement().
final void PascalTreeParserSuper.statement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ASSIGN, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.BLOCK, PascalTreeParserSuperTokenTypes.CASE, PascalTreeParserSuperTokenTypes.COLON, PascalTreeParserSuperTokenTypes.FOR, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.GOTO, PascalTreeParserSuperTokenTypes.IF, label(), antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.PROC_CALL, PascalTreeParserSuperTokenTypes.REPEAT, antlr.TreeParser.reportError(), unlabelledStatement(), PascalTreeParserSuperTokenTypes.WHILE, and PascalTreeParserSuperTokenTypes.WITH.
Referenced by caseListElement(), forStatement(), ifStatement(), statements(), whileStatement(), and withStatement().
final void PascalTreeParserSuper.statements | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, _tokenSet_5, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.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 PascalTreeParserSuper.string | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.match(), antlr.TreeParser.reportError(), and PascalTreeParserSuperTokenTypes.STRING_LITERAL.
Referenced by expression().
final void PascalTreeParserSuper.structuredStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.BLOCK, PascalTreeParserSuperTokenTypes.CASE, compoundStatement(), conditionalStatement(), PascalTreeParserSuperTokenTypes.FOR, PascalTreeParserSuperTokenTypes.IF, PascalTreeParserSuperTokenTypes.REPEAT, repetetiveStatement(), antlr.TreeParser.reportError(), PascalTreeParserSuperTokenTypes.WHILE, PascalTreeParserSuperTokenTypes.WITH, and withStatement().
Referenced by unlabelledStatement().
final void PascalTreeParserSuper.structuredType | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ARRAY, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.FILE, antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.PACKED, PascalTreeParserSuperTokenTypes.RECORD, antlr.TreeParser.reportError(), PascalTreeParserSuperTokenTypes.SET, and unpackedStructuredType().
Referenced by type().
final void PascalTreeParserSuper.tag | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, antlr.collections.AST.getNextSibling(), identifier(), antlr.TreeParser.match(), antlr.TreeParser.reportError(), typeIdentifier(), PascalTreeParserSuperTokenTypes.VARIANT_TAG, and PascalTreeParserSuperTokenTypes.VARIANT_TAG_NO_ID.
Referenced by variantPart().
final void PascalTreeParserSuper.type | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ARRAY, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.BOOLEAN, PascalTreeParserSuperTokenTypes.CHAR, constant(), PascalTreeParserSuperTokenTypes.DOTDOT, PascalTreeParserSuperTokenTypes.FILE, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.IDENT, identifierList(), PascalTreeParserSuperTokenTypes.INTEGER, antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.PACKED, PascalTreeParserSuperTokenTypes.POINTER, PascalTreeParserSuperTokenTypes.REAL, PascalTreeParserSuperTokenTypes.RECORD, antlr.TreeParser.reportError(), PascalTreeParserSuperTokenTypes.SCALARTYPE, PascalTreeParserSuperTokenTypes.SET, PascalTreeParserSuperTokenTypes.STRING, structuredType(), and typeIdentifier().
Referenced by arrayType(), fileType(), recordSection(), setType(), typeDefinition(), typeList(), and variableDeclaration().
final void PascalTreeParserSuper.typeDefinition | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ARGDECLS, PascalTreeParserSuperTokenTypes.ARRAY, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.BOOLEAN, PascalTreeParserSuperTokenTypes.CHAR, PascalTreeParserSuperTokenTypes.DOTDOT, PascalTreeParserSuperTokenTypes.FILE, formalParameterList(), PascalTreeParserSuperTokenTypes.FUNCTION, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.IDENT, PascalTreeParserSuperTokenTypes.INTEGER, antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.PACKED, PascalTreeParserSuperTokenTypes.POINTER, PascalTreeParserSuperTokenTypes.PROCEDURE, PascalTreeParserSuperTokenTypes.REAL, PascalTreeParserSuperTokenTypes.RECORD, antlr.TreeParser.reportError(), resultType(), PascalTreeParserSuperTokenTypes.SCALARTYPE, PascalTreeParserSuperTokenTypes.SET, PascalTreeParserSuperTokenTypes.STRING, type(), and PascalTreeParserSuperTokenTypes.TYPEDECL.
Referenced by typeDefinitionPart().
final void PascalTreeParserSuper.typeDefinitionPart | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.typeIdentifier | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.BOOLEAN, PascalTreeParserSuperTokenTypes.CHAR, antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.IDENT, PascalTreeParserSuperTokenTypes.INTEGER, antlr.TreeParser.match(), PascalTreeParserSuperTokenTypes.NUM_INT, PascalTreeParserSuperTokenTypes.NUM_REAL, PascalTreeParserSuperTokenTypes.REAL, antlr.TreeParser.reportError(), and PascalTreeParserSuperTokenTypes.STRING.
Referenced by parameterGroup(), resultType(), tag(), and type().
final void PascalTreeParserSuper.typeList | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.unlabelledStatement | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ASSIGN, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.BLOCK, PascalTreeParserSuperTokenTypes.CASE, PascalTreeParserSuperTokenTypes.FOR, PascalTreeParserSuperTokenTypes.GOTO, PascalTreeParserSuperTokenTypes.IF, PascalTreeParserSuperTokenTypes.PROC_CALL, PascalTreeParserSuperTokenTypes.REPEAT, antlr.TreeParser.reportError(), simpleStatement(), structuredStatement(), PascalTreeParserSuperTokenTypes.WHILE, and PascalTreeParserSuperTokenTypes.WITH.
Referenced by statement().
final void PascalTreeParserSuper.unpackedStructuredType | ( | AST | _t | ) | throws RecognitionException |
References antlr.TreeParser._retTree, PascalTreeParserSuperTokenTypes.ARRAY, arrayType(), antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.FILE, fileType(), PascalTreeParserSuperTokenTypes.RECORD, recordType(), antlr.TreeParser.reportError(), PascalTreeParserSuperTokenTypes.SET, and setType().
Referenced by structuredType().
final void PascalTreeParserSuper.usesUnitsPart | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.variable | ( | AST | _t | ) | throws RecognitionException |
A variable is an id with a suffix and can look like: id id[expr,...] id.id id.id[expr,...] id^ id^.id id^.id[expr,...] ...
LL has a really hard time with this construct as it's naturally left-recursive. We have to turn into a simple loop rather than recursive loop, hence, the suffixes. I keep in the same rule for easy tree construction.
References antlr.TreeParser._retTree, _tokenSet_3, antlr.TreeParser.ASTNULL, PascalTreeParserSuperTokenTypes.AT, PascalTreeParserSuperTokenTypes.DOT, expression(), antlr.collections.AST.getNextSibling(), PascalTreeParserSuperTokenTypes.IDENT, PascalTreeParserSuperTokenTypes.LBRACK, PascalTreeParserSuperTokenTypes.LBRACK2, antlr.TreeParser.match(), antlr.collections.impl.BitSet.member(), PascalTreeParserSuperTokenTypes.POINTER, and antlr.TreeParser.reportError().
Referenced by assignmentStatement(), expression(), and recordVariableList().
final void PascalTreeParserSuper.variableDeclaration | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.variableDeclarationPart | ( | AST | _t | ) | throws RecognitionException |
Yields a list of VARDECL-rooted subtrees with VAR at the overall root
References antlr.TreeParser._retTree, antlr.TreeParser.ASTNULL, antlr.collections.AST.getNextSibling(), antlr.TreeParser.match(), antlr.TreeParser.reportError(), PascalTreeParserSuperTokenTypes.VAR, PascalTreeParserSuperTokenTypes.VARDECL, and variableDeclaration().
Referenced by block().
final void PascalTreeParserSuper.variant | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.variantPart | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.whileStatement | ( | AST | _t | ) | throws RecognitionException |
final void PascalTreeParserSuper.withStatement | ( | AST | _t | ) | throws RecognitionException |
final String [] PascalTreeParserSuper._tokenNames [static] |
Referenced by PascalTreeParserSuper().
final BitSet PascalTreeParserSuper._tokenSet_0 = new BitSet(mk_tokenSet_0()) [static] |
Referenced by formalParameterList().
final BitSet PascalTreeParserSuper._tokenSet_1 = new BitSet(mk_tokenSet_1()) [static] |
Referenced by typeList().
final BitSet PascalTreeParserSuper._tokenSet_2 = new BitSet(mk_tokenSet_2()) [static] |
Referenced by constList().
final BitSet PascalTreeParserSuper._tokenSet_3 = new BitSet(mk_tokenSet_3()) [static] |
Referenced by parameterList(), and variable().
final BitSet PascalTreeParserSuper._tokenSet_4 = new BitSet(mk_tokenSet_4()) [static] |
Referenced by set().
final BitSet PascalTreeParserSuper._tokenSet_5 = new BitSet(mk_tokenSet_5()) [static] |
Referenced by statements().
final BitSet PascalTreeParserSuper._tokenSet_6 = new BitSet(mk_tokenSet_6()) [static] |
Referenced by recordVariableList().