#include <aparser.hpp>
Inheritance diagram for AbstractParser:


Definition at line 45 of file aparser.hpp.
Public Types | |
| enum | { eNoFetchNext = 1, eCombineNext = 2 } |
Public Member Functions | |
| AbstractParser (AbstractLexer &lexer) | |
| virtual | ~AbstractParser (void) |
| virtual string | GetLocation (void) |
| virtual void | ParseError (const char *error, const char *expected, const AbstractToken &token) |
| virtual void | EndCommentBlock (void) |
| void | ParseError (const char *error, const char *expected) |
| void | ParseError (const char *expected) |
| string | Location (void) const |
| AbstractLexer & | Lexer (void) |
| const AbstractLexer & | Lexer (void) const |
| const AbstractToken & | NextToken (void) const |
| TToken | Next (void) const |
| int | NextTokenLine (void) const |
| int | LastTokenLine (void) const |
| void | Consume (void) |
| const string & | ConsumeAndValue (void) |
| bool | Check (TToken token) |
| void | Expect (TToken token, const char *expected) |
| bool | ConsumeIf (TToken token) |
| void | Consume (TToken token, const char *expected) |
| const string & | ValueOf (TToken token, const char *expected) |
| bool | CheckSymbol (char symbol) |
| void | ExpectSymbol (char symbol) |
| bool | ConsumeIfSymbol (char symbol) |
| void | ConsumeSymbol (char symbol) |
| char | CheckSymbols (char symbol1, char symbol2) |
| void | CopyComments (CComments &comments) |
| void | CopyLineComment (int line, CComments &comments, int flags=0) |
Protected Member Functions | |
| void | SetLexer (AbstractLexer *lexer) |
Private Attributes | |
| AbstractLexer * | m_Lexer |
|
|
Definition at line 169 of file aparser.hpp. |
|
|
Definition at line 40 of file aparser.cpp. |
|
|
Definition at line 45 of file aparser.cpp. |
|
|
Definition at line 102 of file aparser.hpp. References Next(). Referenced by ConsumeIf(), and Expect(). |
|
|
Definition at line 130 of file aparser.hpp. References AbstractLexer::CheckSymbol(), and Lexer(). Referenced by ConsumeIfSymbol(), ExpectSymbol(), ASNParser::x_Type(), and ASNParser::x_Value(). |
|
||||||||||||
|
Definition at line 155 of file aparser.hpp. References AbstractToken::GetSymbol(), Next(), NextToken(), and T_SYMBOL. Referenced by ASNParser::x_Value(). |
|
||||||||||||
|
Definition at line 119 of file aparser.hpp. |
|
|
Definition at line 93 of file aparser.hpp. References AbstractLexer::Consume(), and Lexer(). Referenced by Consume(), ConsumeIf(), ConsumeIfSymbol(), ConsumeSymbol(), ASNParser::HaveMoreElements(), ASNParser::Imports(), ASNParser::Module(), ASNParser::ModuleBody(), ASNParser::NamedDataType(), DTDParser::SkipConditionalSection(), ASNParser::SkipTo(), ASNParser::String(), ASNParser::x_Type(), and ASNParser::x_Value(). |
|
|
Definition at line 97 of file aparser.hpp. References AbstractLexer::ConsumeAndValue(), and Lexer(). Referenced by ASNParser::Identifier(), ASNParser::ModuleReference(), ASNParser::TypeReference(), ValueOf(), ASNParser::x_Type(), and ASNParser::x_Value(). |
|
|
Definition at line 112 of file aparser.hpp. References Check(), and Consume(). Referenced by ASNParser::x_Type(). |
|
|
Definition at line 142 of file aparser.hpp. References CheckSymbol(), and Consume(). Referenced by ASNParser::Imports(), ASNParser::TypeList(), and ASNParser::x_Value(). |
|
|
Definition at line 149 of file aparser.hpp. References Consume(), and ExpectSymbol(). Referenced by DTDParser::BeginEntityContent(), ASNParser::EnumeratedBlock(), ASNParser::EnumeratedValue(), ASNParser::Exports(), DTDParser::ParseAttributesContent(), DTDParser::ParseElementContent(), DTDParser::ParseEntityContent(), ASNParser::TypesBlock(), and ASNParser::x_Value(). |
|
|
Definition at line 165 of file aparser.hpp. References AbstractLexer::FlushCommentsTo(), and Lexer(). Referenced by XSDParser::BuildDocumentTree(), WSDLParser::BuildDocumentTree(), DTDParser::EndCommentBlock(), ASNParser::EnumeratedValue(), ASNParser::Module(), DTDParser::Module(), ASNParser::ModuleBody(), ASNParser::Modules(), and ASNParser::NamedDataType(). |
|
||||||||||||||||
|
Definition at line 69 of file aparser.cpp. References _TRACE, CComments::Add(), eCombineNext, eNoFetchNext, AbstractLexer::FillComments(), AbstractLexer::CComment::GetLine(), Lexer(), AbstractLexer::NextComment(), and AbstractLexer::SkipNextComment(). Referenced by ASNParser::EnumeratedBlock(), ASNParser::ModuleType(), and ASNParser::TypesBlock(). |
|
|
Reimplemented in DTDParser. Definition at line 53 of file aparser.hpp. Referenced by AbstractLexer::EndCommentBlock(). |
|
||||||||||||
|
Definition at line 107 of file aparser.hpp. References Check(), and ParseError(). Referenced by Consume(), ASNParser::String(), and ValueOf(). |
|
|
Definition at line 135 of file aparser.hpp. References CheckSymbol(), and ParseError(). Referenced by ConsumeSymbol(). |
|
|
Reimplemented in DTDParser. Definition at line 49 of file aparser.cpp. References kEmptyStr. Referenced by ParseError(). |
|
|
Definition at line 88 of file aparser.hpp. References AbstractLexer::LastTokenLine(), and Lexer(). Referenced by Location(), and ASNParser::ModuleType(). |
|
|
Definition at line 71 of file aparser.hpp. References m_Lexer. |
|
|
|
Definition at line 64 of file aparser.cpp. References NStr::IntToString(), and LastTokenLine(). Referenced by ASNParser::ModuleBody(), XSDParser::ParseHeader(), and WSDLParser::ParseHeader(). |
|
|
Definition at line 80 of file aparser.hpp. References AbstractToken::GetToken(), and NextToken(). Referenced by Check(), CheckSymbols(), DTDParser::GetNextToken(), ASNParser::Identifier(), ASNParser::Module(), ASNParser::ModuleBody(), ASNParser::ModuleReference(), ASNParser::Modules(), ASNParser::NamedDataType(), DTDParser::SkipConditionalSection(), ASNParser::SkipTo(), ASNParser::TypeReference(), ASNParser::x_Type(), and ASNParser::x_Value(). |
|
|
|
Definition at line 84 of file aparser.hpp. References AbstractToken::GetLine(), and NextToken(). Referenced by ASNParser::EnumeratedBlock(), ASNParser::Type(), ASNParser::TypesBlock(), and ASNParser::Value(). |
|
|
Definition at line 60 of file aparser.hpp. References ParseError(). |
|
||||||||||||
|
Definition at line 55 of file aparser.hpp. References NextToken(), and ParseError(). |
|
||||||||||||||||
|
|
Definition at line 176 of file aparser.hpp. References m_Lexer. Referenced by DTDParser::PopEntityLexer(). |
|
||||||||||||
|
Definition at line 124 of file aparser.hpp. References ConsumeAndValue(), and Expect(). Referenced by ASNParser::Double(), and ASNParser::Number(). |
|
|
Definition at line 182 of file aparser.hpp. Referenced by Lexer(), NextToken(), and SetLexer(). |
1.4.6
Modified on Mon Dec 07 16:22:18 2009 by modify_doxy.py rev. 173732