KDevelop API Documentation

PascalStoreWalker Class Reference

#include <PascalStoreWalker.hpp>

Inheritance diagram for PascalStoreWalker:

Inheritance graph
[legend]
Collaboration diagram for PascalStoreWalker:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void setCodeModel (CodeModel *model)
CodeModelcodeModel ()
const CodeModelcodeModel () const
QString fileName () const
void setFileName (const QString &fileName)
void init ()
void wipeout ()
 PascalStoreWalker ()
void initializeASTFactory (antlr::ASTFactory &factory)
int getNumTokens () const
const char * getTokenName (int type) const
void program (RefPascalAST _t)
void programHeading (RefPascalAST _t)
void block (RefPascalAST _t)
void identifierList (RefPascalAST _t)
void identifier (RefPascalAST _t)
void labelDeclarationPart (RefPascalAST _t)
void constantDefinitionPart (RefPascalAST _t)
void typeDefinitionPart (RefPascalAST _t)
void variableDeclarationPart (RefPascalAST _t)
 Yields a list of VARDECL-rooted subtrees with VAR at the overall root.
void procedureAndFunctionDeclarationPart (RefPascalAST _t)
void usesUnitsPart (RefPascalAST _t)
void compoundStatement (RefPascalAST _t)
void label (RefPascalAST _t)
void constantDefinition (RefPascalAST _t)
void constant (RefPascalAST _t)
void string (RefPascalAST _t)
void typeDefinition (RefPascalAST _t)
void type (RefPascalAST _t)
void formalParameterList (RefPascalAST _t)
void resultType (RefPascalAST _t)
void typeIdentifier (RefPascalAST _t)
void structuredType (RefPascalAST _t)
void unpackedStructuredType (RefPascalAST _t)
void arrayType (RefPascalAST _t)
 Note here that the syntactic diff between brackets disappears.
void recordType (RefPascalAST _t)
void setType (RefPascalAST _t)
void fileType (RefPascalAST _t)
void typeList (RefPascalAST _t)
void fieldList (RefPascalAST _t)
void fixedPart (RefPascalAST _t)
void variantPart (RefPascalAST _t)
void recordSection (RefPascalAST _t)
void tag (RefPascalAST _t)
void variant (RefPascalAST _t)
void constList (RefPascalAST _t)
void variableDeclaration (RefPascalAST _t)
void procedureOrFunctionDeclaration (RefPascalAST _t)
void procedureDeclaration (RefPascalAST _t)
void functionDeclaration (RefPascalAST _t)
void formalParameterSection (RefPascalAST _t)
void parameterGroup (RefPascalAST _t)
void statement (RefPascalAST _t)
void unlabelledStatement (RefPascalAST _t)
void simpleStatement (RefPascalAST _t)
void structuredStatement (RefPascalAST _t)
void assignmentStatement (RefPascalAST _t)
void procedureStatement (RefPascalAST _t)
void gotoStatement (RefPascalAST _t)
void variable (RefPascalAST _t)
 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,...] ...
void expression (RefPascalAST _t)
void functionDesignator (RefPascalAST _t)
void set (RefPascalAST _t)
void parameterList (RefPascalAST _t)
void actualParameter (RefPascalAST _t)
void element (RefPascalAST _t)
void conditionalStatement (RefPascalAST _t)
void repetetiveStatement (RefPascalAST _t)
void withStatement (RefPascalAST _t)
void statements (RefPascalAST _t)
void ifStatement (RefPascalAST _t)
void caseStatement (RefPascalAST _t)
void caseListElement (RefPascalAST _t)
void whileStatement (RefPascalAST _t)
void repeatStatement (RefPascalAST _t)
void forStatement (RefPascalAST _t)
void forList (RefPascalAST _t)
void initialValue (RefPascalAST _t)
void finalValue (RefPascalAST _t)
void recordVariableList (RefPascalAST _t)
RefPascalAST getAST ()

Protected Attributes

RefPascalAST returnAST
RefPascalAST _retTree

Private Attributes

QString m_fileName
QStringList m_currentScope
int m_currentAccess
int m_anon
CodeModelm_model

Static Private Attributes

const char * tokenNames []
const int NUM_TOKENS = 190
const unsigned long _tokenSet_0_data_ [] = { 262144UL, 172032UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_0
const unsigned long _tokenSet_1_data_ [] = { 512UL, 262144UL, 3641384976UL, 1UL, 0UL, 8UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_1
const unsigned long _tokenSet_2_data_ [] = { 0UL, 0UL, 8UL, 50331648UL, 2147483648UL, 13UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_2
const unsigned long _tokenSet_3_data_ [] = { 4194432UL, 2048UL, 1107296264UL, 4152229889UL, 2155872329UL, 15UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_3
const unsigned long _tokenSet_4_data_ [] = { 4194432UL, 2048UL, 1107427336UL, 4152229889UL, 2155872329UL, 15UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_4
const unsigned long _tokenSet_5_data_ [] = { 272UL, 16384UL, 537133056UL, 0UL, 4888576UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_5
const unsigned long _tokenSet_6_data_ [] = { 4194304UL, 0UL, 33554432UL, 1UL, 8388672UL, 8UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL }
const antlr::BitSet _tokenSet_6

Constructor & Destructor Documentation

PascalStoreWalker::PascalStoreWalker  ) 
 

Definition at line 11 of file PascalStoreWalker.cpp.

References ANTLR_USE_NAMESPACE.


Member Function Documentation

void PascalStoreWalker::actualParameter RefPascalAST  _t  ) 
 

Definition at line 2656 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, expression(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by parameterList().

void PascalStoreWalker::arrayType RefPascalAST  _t  ) 
 

Note here that the syntactic diff between brackets disappears.

If the brackets mean different things semantically, we need two different alternatives here.

Definition at line 1064 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, type(), and typeList().

Referenced by unpackedStructuredType().

void PascalStoreWalker::assignmentStatement RefPascalAST  _t  ) 
 

Definition at line 1898 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, expression(), ASTRefCount< T >::get(), nullAST, RefPascalAST, and variable().

Referenced by simpleStatement().

void PascalStoreWalker::block RefPascalAST  _t  ) 
 

Definition at line 81 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, compoundStatement(), constantDefinitionPart(), ASTRefCount< T >::get(), labelDeclarationPart(), nullAST, procedureAndFunctionDeclarationPart(), RefPascalAST, typeDefinitionPart(), usesUnitsPart(), and variableDeclarationPart().

Referenced by functionDeclaration(), procedureDeclaration(), and program().

void PascalStoreWalker::caseListElement RefPascalAST  _t  ) 
 

Definition at line 2980 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, constList(), ASTRefCount< T >::get(), nullAST, RefPascalAST, and statement().

Referenced by caseStatement().

void PascalStoreWalker::caseStatement RefPascalAST  _t  ) 
 

Definition at line 2922 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, caseListElement(), expression(), ASTRefCount< T >::get(), nullAST, RefPascalAST, and statements().

Referenced by conditionalStatement().

const CodeModel* PascalStoreWalker::codeModel  )  const [inline]
 

Definition at line 39 of file PascalStoreWalker.hpp.

CodeModel* PascalStoreWalker::codeModel  )  [inline]
 

Definition at line 38 of file PascalStoreWalker.hpp.

void PascalStoreWalker::compoundStatement RefPascalAST  _t  ) 
 

Definition at line 387 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, and statements().

Referenced by block(), and structuredStatement().

void PascalStoreWalker::conditionalStatement RefPascalAST  _t  ) 
 

Definition at line 2740 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, caseStatement(), ASTRefCount< T >::get(), ifStatement(), nullAST, and RefPascalAST.

Referenced by structuredStatement().

void PascalStoreWalker::constant RefPascalAST  _t  ) 
 

Definition at line 442 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by constantDefinition(), constList(), and type().

void PascalStoreWalker::constantDefinition RefPascalAST  _t  ) 
 

Definition at line 418 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, constant(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by constantDefinitionPart().

void PascalStoreWalker::constantDefinitionPart RefPascalAST  _t  ) 
 

Definition at line 242 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, constantDefinition(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by block().

void PascalStoreWalker::constList RefPascalAST  _t  ) 
 

Definition at line 1439 of file PascalStoreWalker.cpp.

References _retTree, _tokenSet_2, ANTLR_USE_NAMESPACE, constant(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by caseListElement(), and variant().

void PascalStoreWalker::element RefPascalAST  _t  ) 
 

Definition at line 2671 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, expression(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by set().

void PascalStoreWalker::expression RefPascalAST  _t  ) 
 

Definition at line 2125 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, functionDesignator(), ASTRefCount< T >::get(), nullAST, RefPascalAST, set(), string(), and variable().

Referenced by actualParameter(), assignmentStatement(), caseStatement(), element(), finalValue(), ifStatement(), initialValue(), repeatStatement(), variable(), and whileStatement().

void PascalStoreWalker::fieldList RefPascalAST  _t  ) 
 

Definition at line 1217 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, fixedPart(), ASTRefCount< T >::get(), nullAST, RefPascalAST, and variantPart().

Referenced by recordType(), and variant().

QString PascalStoreWalker::fileName  )  const [inline]
 

Definition at line 41 of file PascalStoreWalker.hpp.

void PascalStoreWalker::fileType RefPascalAST  _t  ) 
 

Definition at line 1129 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, and type().

Referenced by unpackedStructuredType().

void PascalStoreWalker::finalValue RefPascalAST  _t  ) 
 

Definition at line 3139 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, expression(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by forList().

void PascalStoreWalker::fixedPart RefPascalAST  _t  ) 
 

Definition at line 1278 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, recordSection(), and RefPascalAST.

Referenced by fieldList().

void PascalStoreWalker::forList RefPascalAST  _t  ) 
 

Definition at line 3075 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, finalValue(), ASTRefCount< T >::get(), initialValue(), nullAST, and RefPascalAST.

Referenced by forStatement().

void PascalStoreWalker::formalParameterList RefPascalAST  _t  ) 
 

Definition at line 821 of file PascalStoreWalker.cpp.

References _retTree, _tokenSet_0, ANTLR_USE_NAMESPACE, formalParameterSection(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by functionDeclaration(), procedureDeclaration(), and typeDefinition().

void PascalStoreWalker::formalParameterSection RefPascalAST  _t  ) 
 

Definition at line 1634 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, parameterGroup(), and RefPascalAST.

Referenced by formalParameterList().

void PascalStoreWalker::forStatement RefPascalAST  _t  ) 
 

Definition at line 3049 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, forList(), ASTRefCount< T >::get(), nullAST, RefPascalAST, and statement().

Referenced by repetetiveStatement().

void PascalStoreWalker::functionDeclaration RefPascalAST  _t  ) 
 

Definition at line 1583 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, block(), formalParameterList(), ASTRefCount< T >::get(), nullAST, RefPascalAST, and resultType().

Referenced by procedureOrFunctionDeclaration().

void PascalStoreWalker::functionDesignator RefPascalAST  _t  ) 
 

Definition at line 2544 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, parameterList(), and RefPascalAST.

Referenced by expression().

RefPascalAST PascalStoreWalker::getAST  ) 
 

Definition at line 3184 of file PascalStoreWalker.cpp.

References RefPascalAST.

int PascalStoreWalker::getNumTokens void   )  const [inline]
 

Definition at line 55 of file PascalStoreWalker.hpp.

Referenced by getTokenName().

const char* PascalStoreWalker::getTokenName int  type  )  const [inline]
 

Definition at line 59 of file PascalStoreWalker.hpp.

References getNumTokens(), and tokenNames.

void PascalStoreWalker::gotoStatement RefPascalAST  _t  ) 
 

Definition at line 1963 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), label(), nullAST, and RefPascalAST.

Referenced by simpleStatement().

void PascalStoreWalker::identifier RefPascalAST  _t  ) 
 

Definition at line 190 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by tag().

void PascalStoreWalker::identifierList RefPascalAST  _t  ) 
 

Definition at line 153 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by parameterGroup(), programHeading(), recordSection(), type(), usesUnitsPart(), and variableDeclaration().

void PascalStoreWalker::ifStatement RefPascalAST  _t  ) 
 

Definition at line 2869 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, expression(), ASTRefCount< T >::get(), nullAST, RefPascalAST, and statement().

Referenced by conditionalStatement().

void PascalStoreWalker::init  )  [inline]
 

Definition at line 44 of file PascalStoreWalker.hpp.

References m_anon, m_currentAccess, and m_currentScope.

void PascalStoreWalker::initializeASTFactory antlr::ASTFactory &  factory  ) 
 

Definition at line 3189 of file PascalStoreWalker.cpp.

void PascalStoreWalker::initialValue RefPascalAST  _t  ) 
 

Definition at line 3124 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, expression(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by forList().

void PascalStoreWalker::label RefPascalAST  _t  ) 
 

Definition at line 402 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by gotoStatement(), labelDeclarationPart(), and statement().

void PascalStoreWalker::labelDeclarationPart RefPascalAST  _t  ) 
 

Definition at line 206 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), label(), nullAST, and RefPascalAST.

Referenced by block().

void PascalStoreWalker::parameterGroup RefPascalAST  _t  ) 
 

Definition at line 1697 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), identifierList(), nullAST, RefPascalAST, and typeIdentifier().

Referenced by formalParameterSection().

void PascalStoreWalker::parameterList RefPascalAST  _t  ) 
 

Definition at line 2620 of file PascalStoreWalker.cpp.

References _retTree, _tokenSet_3, actualParameter(), ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by functionDesignator(), and procedureStatement().

void PascalStoreWalker::procedureAndFunctionDeclarationPart RefPascalAST  _t  ) 
 

Definition at line 351 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, procedureOrFunctionDeclaration(), and RefPascalAST.

Referenced by block().

void PascalStoreWalker::procedureDeclaration RefPascalAST  _t  ) 
 

Definition at line 1531 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, block(), formalParameterList(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by procedureOrFunctionDeclaration().

void PascalStoreWalker::procedureOrFunctionDeclaration RefPascalAST  _t  ) 
 

Definition at line 1498 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, functionDeclaration(), ASTRefCount< T >::get(), nullAST, procedureDeclaration(), and RefPascalAST.

Referenced by procedureAndFunctionDeclarationPart().

void PascalStoreWalker::procedureStatement RefPascalAST  _t  ) 
 

Definition at line 1921 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, parameterList(), and RefPascalAST.

Referenced by simpleStatement().

void PascalStoreWalker::program RefPascalAST  _t  ) 
 

Definition at line 15 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, block(), ASTRefCount< T >::get(), nullAST, programHeading(), and RefPascalAST.

void PascalStoreWalker::programHeading RefPascalAST  _t  ) 
 

Definition at line 32 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), identifierList(), nullAST, and RefPascalAST.

Referenced by program().

void PascalStoreWalker::recordSection RefPascalAST  _t  ) 
 

Definition at line 1346 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), identifierList(), nullAST, RefPascalAST, and type().

Referenced by fixedPart().

void PascalStoreWalker::recordType RefPascalAST  _t  ) 
 

Definition at line 1087 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, fieldList(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by unpackedStructuredType().

void PascalStoreWalker::recordVariableList RefPascalAST  _t  ) 
 

Definition at line 3154 of file PascalStoreWalker.cpp.

References _retTree, _tokenSet_6, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, and variable().

Referenced by withStatement().

void PascalStoreWalker::repeatStatement RefPascalAST  _t  ) 
 

Definition at line 3026 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, expression(), ASTRefCount< T >::get(), nullAST, RefPascalAST, and statements().

Referenced by repetetiveStatement().

void PascalStoreWalker::repetetiveStatement RefPascalAST  _t  ) 
 

Definition at line 2773 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, forStatement(), ASTRefCount< T >::get(), nullAST, RefPascalAST, repeatStatement(), and whileStatement().

Referenced by structuredStatement().

void PascalStoreWalker::resultType RefPascalAST  _t  ) 
 

Definition at line 857 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, and typeIdentifier().

Referenced by functionDeclaration(), and typeDefinition().

void PascalStoreWalker::set RefPascalAST  _t  ) 
 

Definition at line 2586 of file PascalStoreWalker.cpp.

References _retTree, _tokenSet_4, ANTLR_USE_NAMESPACE, element(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by expression().

void PascalStoreWalker::setCodeModel CodeModel model  )  [inline]
 

Definition at line 37 of file PascalStoreWalker.hpp.

References m_model.

void PascalStoreWalker::setFileName const QString fileName  )  [inline]
 

Definition at line 42 of file PascalStoreWalker.hpp.

References m_fileName.

void PascalStoreWalker::setType RefPascalAST  _t  ) 
 

Definition at line 1108 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, and type().

Referenced by unpackedStructuredType().

void PascalStoreWalker::simpleStatement RefPascalAST  _t  ) 
 

Definition at line 1811 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, assignmentStatement(), ASTRefCount< T >::get(), gotoStatement(), nullAST, procedureStatement(), and RefPascalAST.

Referenced by unlabelledStatement().

void PascalStoreWalker::statement RefPascalAST  _t  ) 
 

Definition at line 1720 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), label(), nullAST, RefPascalAST, and unlabelledStatement().

Referenced by caseListElement(), forStatement(), ifStatement(), statements(), whileStatement(), and withStatement().

void PascalStoreWalker::statements RefPascalAST  _t  ) 
 

Definition at line 2835 of file PascalStoreWalker.cpp.

References _retTree, _tokenSet_5, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, and statement().

Referenced by caseStatement(), compoundStatement(), and repeatStatement().

void PascalStoreWalker::string RefPascalAST  _t  ) 
 

Definition at line 607 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by expression().

void PascalStoreWalker::structuredStatement RefPascalAST  _t  ) 
 

Definition at line 1850 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, compoundStatement(), conditionalStatement(), ASTRefCount< T >::get(), nullAST, RefPascalAST, repetetiveStatement(), and withStatement().

Referenced by unlabelledStatement().

void PascalStoreWalker::structuredType RefPascalAST  _t  ) 
 

Definition at line 973 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, and unpackedStructuredType().

Referenced by type().

void PascalStoreWalker::tag RefPascalAST  _t  ) 
 

Definition at line 1369 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), identifier(), nullAST, RefPascalAST, and typeIdentifier().

Referenced by variantPart().

void PascalStoreWalker::type RefPascalAST  _t  ) 
 

Definition at line 741 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, constant(), ASTRefCount< T >::get(), identifierList(), nullAST, RefPascalAST, structuredType(), and typeIdentifier().

Referenced by arrayType(), fileType(), recordSection(), setType(), typeDefinition(), typeList(), and variableDeclaration().

void PascalStoreWalker::typeDefinition RefPascalAST  _t  ) 
 

Definition at line 623 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, formalParameterList(), ASTRefCount< T >::get(), nullAST, RefPascalAST, resultType(), and type().

Referenced by typeDefinitionPart().

void PascalStoreWalker::typeDefinitionPart RefPascalAST  _t  ) 
 

Definition at line 278 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, and typeDefinition().

Referenced by block().

void PascalStoreWalker::typeIdentifier RefPascalAST  _t  ) 
 

Definition at line 872 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by parameterGroup(), resultType(), tag(), and type().

void PascalStoreWalker::typeList RefPascalAST  _t  ) 
 

Definition at line 1181 of file PascalStoreWalker.cpp.

References _retTree, _tokenSet_1, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, and type().

Referenced by arrayType().

void PascalStoreWalker::unlabelledStatement RefPascalAST  _t  ) 
 

Definition at line 1770 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, simpleStatement(), and structuredStatement().

Referenced by statement().

void PascalStoreWalker::unpackedStructuredType RefPascalAST  _t  ) 
 

Definition at line 1015 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, arrayType(), fileType(), ASTRefCount< T >::get(), nullAST, recordType(), RefPascalAST, and setType().

Referenced by structuredType().

void PascalStoreWalker::usesUnitsPart RefPascalAST  _t  ) 
 

Definition at line 366 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), identifierList(), nullAST, and RefPascalAST.

Referenced by block().

void PascalStoreWalker::variable RefPascalAST  _t  ) 
 

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.

Definition at line 1999 of file PascalStoreWalker.cpp.

References _retTree, _tokenSet_3, ANTLR_USE_NAMESPACE, expression(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by assignmentStatement(), expression(), and recordVariableList().

void PascalStoreWalker::variableDeclaration RefPascalAST  _t  ) 
 

Definition at line 1475 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), identifierList(), nullAST, RefPascalAST, and type().

Referenced by variableDeclarationPart().

void PascalStoreWalker::variableDeclarationPart RefPascalAST  _t  ) 
 

Yields a list of VARDECL-rooted subtrees with VAR at the overall root.

Definition at line 315 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, and variableDeclaration().

Referenced by block().

void PascalStoreWalker::variant RefPascalAST  _t  ) 
 

Definition at line 1416 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, constList(), fieldList(), ASTRefCount< T >::get(), nullAST, and RefPascalAST.

Referenced by variantPart().

void PascalStoreWalker::variantPart RefPascalAST  _t  ) 
 

Definition at line 1308 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, RefPascalAST, tag(), and variant().

Referenced by fieldList().

void PascalStoreWalker::whileStatement RefPascalAST  _t  ) 
 

Definition at line 3003 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, expression(), ASTRefCount< T >::get(), nullAST, RefPascalAST, and statement().

Referenced by repetetiveStatement().

void PascalStoreWalker::wipeout  )  [inline]
 

Definition at line 50 of file PascalStoreWalker.hpp.

References m_model, and CodeModel::wipeout().

void PascalStoreWalker::withStatement RefPascalAST  _t  ) 
 

Definition at line 2812 of file PascalStoreWalker.cpp.

References _retTree, ANTLR_USE_NAMESPACE, ASTRefCount< T >::get(), nullAST, recordVariableList(), RefPascalAST, and statement().

Referenced by structuredStatement().


Member Data Documentation

RefPascalAST PascalStoreWalker::_retTree [protected]
 

Definition at line 138 of file PascalStoreWalker.hpp.

Referenced by actualParameter(), arrayType(), assignmentStatement(), block(), caseListElement(), caseStatement(), compoundStatement(), conditionalStatement(), constant(), constantDefinition(), constantDefinitionPart(), constList(), element(), expression(), fieldList(), fileType(), finalValue(), fixedPart(), forList(), formalParameterList(), formalParameterSection(), forStatement(), functionDeclaration(), functionDesignator(), gotoStatement(), identifier(), identifierList(), ifStatement(), initialValue(), label(), labelDeclarationPart(), parameterGroup(), parameterList(), procedureAndFunctionDeclarationPart(), procedureDeclaration(), procedureOrFunctionDeclaration(), procedureStatement(), program(), programHeading(), recordSection(), recordType(), recordVariableList(), repeatStatement(), repetetiveStatement(), resultType(), set(), setType(), simpleStatement(), statement(), statements(), string(), structuredStatement(), structuredType(), tag(), type(), typeDefinition(), typeDefinitionPart(), typeIdentifier(), typeList(), unlabelledStatement(), unpackedStructuredType(), usesUnitsPart(), variable(), variableDeclaration(), variableDeclarationPart(), variant(), variantPart(), whileStatement(), and withStatement().

const antlr::BitSet PascalStoreWalker::_tokenSet_0 [static, private]
 

Referenced by formalParameterList().

const unsigned long PascalStoreWalker::_tokenSet_0_data_ = { 262144UL, 172032UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 3386 of file PascalStoreWalker.cpp.

const antlr::BitSet PascalStoreWalker::_tokenSet_1 [static, private]
 

Referenced by typeList().

const unsigned long PascalStoreWalker::_tokenSet_1_data_ = { 512UL, 262144UL, 3641384976UL, 1UL, 0UL, 8UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 3389 of file PascalStoreWalker.cpp.

const antlr::BitSet PascalStoreWalker::_tokenSet_2 [static, private]
 

Referenced by constList().

const unsigned long PascalStoreWalker::_tokenSet_2_data_ = { 0UL, 0UL, 8UL, 50331648UL, 2147483648UL, 13UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 3393 of file PascalStoreWalker.cpp.

const antlr::BitSet PascalStoreWalker::_tokenSet_3 [static, private]
 

Referenced by parameterList(), and variable().

const unsigned long PascalStoreWalker::_tokenSet_3_data_ = { 4194432UL, 2048UL, 1107296264UL, 4152229889UL, 2155872329UL, 15UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 3396 of file PascalStoreWalker.cpp.

const antlr::BitSet PascalStoreWalker::_tokenSet_4 [static, private]
 

Referenced by set().

const unsigned long PascalStoreWalker::_tokenSet_4_data_ = { 4194432UL, 2048UL, 1107427336UL, 4152229889UL, 2155872329UL, 15UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 3401 of file PascalStoreWalker.cpp.

const antlr::BitSet PascalStoreWalker::_tokenSet_5 [static, private]
 

Referenced by statements().

const unsigned long PascalStoreWalker::_tokenSet_5_data_ = { 272UL, 16384UL, 537133056UL, 0UL, 4888576UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 3406 of file PascalStoreWalker.cpp.

const antlr::BitSet PascalStoreWalker::_tokenSet_6 [static, private]
 

Referenced by recordVariableList().

const unsigned long PascalStoreWalker::_tokenSet_6_data_ = { 4194304UL, 0UL, 33554432UL, 1UL, 8388672UL, 8UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL } [static, private]
 

Definition at line 3410 of file PascalStoreWalker.cpp.

int PascalStoreWalker::m_anon [private]
 

Definition at line 33 of file PascalStoreWalker.hpp.

Referenced by init().

int PascalStoreWalker::m_currentAccess [private]
 

Definition at line 32 of file PascalStoreWalker.hpp.

Referenced by init().

QStringList PascalStoreWalker::m_currentScope [private]
 

Definition at line 31 of file PascalStoreWalker.hpp.

Referenced by init().

QString PascalStoreWalker::m_fileName [private]
 

Definition at line 30 of file PascalStoreWalker.hpp.

Referenced by setFileName().

CodeModel* PascalStoreWalker::m_model [private]
 

Definition at line 34 of file PascalStoreWalker.hpp.

Referenced by setCodeModel(), and wipeout().

const int PascalStoreWalker::NUM_TOKENS = 190 [static, private]
 

Definition at line 142 of file PascalStoreWalker.hpp.

RefPascalAST PascalStoreWalker::returnAST [protected]
 

Definition at line 137 of file PascalStoreWalker.hpp.

const char * PascalStoreWalker::tokenNames [static, private]
 

Definition at line 3192 of file PascalStoreWalker.cpp.

Referenced by getTokenName().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:45:20 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003