Public Member Functions | Static Public Attributes

PascalTreeParserSuper Class Reference

Inheritance diagram for PascalTreeParserSuper:
antlr.TreeParser PascalTreeParserSuperTokenTypes

List of all members.

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())

Constructor & Destructor Documentation

PascalTreeParserSuper.PascalTreeParserSuper (  ) 

Member Function Documentation

final void PascalTreeParserSuper.actualParameter ( AST  _t  )  throws RecognitionException
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.compoundStatement ( AST  _t  )  throws RecognitionException
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.finalValue ( AST  _t  )  throws RecognitionException
final void PascalTreeParserSuper.identifier ( AST  _t  )  throws RecognitionException
final void PascalTreeParserSuper.initialValue ( AST  _t  )  throws RecognitionException
final void PascalTreeParserSuper.procedureAndFunctionDeclarationPart ( AST  _t  )  throws RecognitionException
final void PascalTreeParserSuper.program ( AST  _t  )  throws RecognitionException
final void PascalTreeParserSuper.recordVariableList ( AST  _t  )  throws RecognitionException
final void PascalTreeParserSuper.resultType ( 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.variableDeclarationPart ( AST  _t  )  throws RecognitionException

Member Data Documentation

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties