Code::Blocks  SVN r11506
Public Member Functions | Public Attributes | List of all members
NativeParserBase::ParserComponent Struct Reference

a long statement can be divided to a ParserComponent chain. More...

#include <nativeparser_base.h>

Collaboration diagram for NativeParserBase::ParserComponent:

Public Member Functions

 ParserComponent ()
 operator type More...
 
void Clear ()
 

Public Attributes

wxString component
 
ParserTokenType tokenType
 name More...
 
OperatorType tokenOperatorType
 type More...
 

Detailed Description

a long statement can be divided to a ParserComponent chain.

e.g. for a statement like below:

Ogre::Root::getSingleton().|

a chains of four ParserComponents will be generated and list below:

a ParserComponent is mainly an identifier, which we use this identifier name to query on the Symbol tree, and try to get the matched symbols. For this example, we first try to search the Symbol tree by the keyword "Ogre", this will match a symbol which has type "Namespace". The next step, we search the "Root" under the previous returned Symbols. In some special cases, such as "array[7]->b", we gives such result

array [pttNamespace] (variable name?)
[] [pttFunction, which is operator[]]

Definition at line 73 of file nativeparser_base.h.

Constructor & Destructor Documentation

◆ ParserComponent()

NativeParserBase::ParserComponent::ParserComponent ( )
inline

operator type

Definition at line 79 of file nativeparser_base.h.

References Clear().

Member Function Documentation

◆ Clear()

void NativeParserBase::ParserComponent::Clear ( )
inline

Member Data Documentation

◆ component

wxString NativeParserBase::ParserComponent::component

◆ tokenOperatorType

OperatorType NativeParserBase::ParserComponent::tokenOperatorType

◆ tokenType

ParserTokenType NativeParserBase::ParserComponent::tokenType

The documentation for this struct was generated from the following file: