|
My Project
|
Lexer class for turning a template into a list of tokens. More...
Public Member Functions | |
| TemplateLexer (const TemplateEngine *engine, const QCString &fileName, const QCString &data) | |
| void | tokenize (QList< TemplateToken > &tokens) |
| void | setOpenCloseCharacters (char openChar, char closeChar) |
Private Member Functions | |
| void | addToken (QList< TemplateToken > &tokens, const char *data, int line, int startPos, int endPos, TemplateToken::Type type) |
| void | reset () |
Private Attributes | |
| const TemplateEngine * | m_engine |
| QCString | m_fileName |
| QCString | m_data |
| char | m_openChar |
| char | m_closeChar |
Lexer class for turning a template into a list of tokens.
Definition at line 4636 of file template.cpp.
| TemplateLexer::TemplateLexer | ( | const TemplateEngine * | engine, |
| const QCString & | fileName, | ||
| const QCString & | data | ||
| ) |
Definition at line 4655 of file template.cpp.
References m_closeChar, and m_openChar.
|
private |
Definition at line 4865 of file template.cpp.
References TemplateToken::Text.
Referenced by tokenize().
|
private |
|
inline |
Definition at line 4641 of file template.cpp.
References m_closeChar, and m_openChar.
Referenced by TemplateImpl::TemplateImpl().
| void TemplateLexer::tokenize | ( | QList< TemplateToken > & | tokens | ) |
Definition at line 4662 of file template.cpp.
References addToken(), TemplateToken::Block, m_closeChar, m_data, m_engine, m_fileName, m_openChar, TemplateEngine::printIncludeContext(), TemplateToken::Text, TemplateToken::Variable, and warn().
Referenced by TemplateImpl::TemplateImpl().
|
private |
Definition at line 4652 of file template.cpp.
Referenced by setOpenCloseCharacters(), TemplateLexer(), and tokenize().
|
private |
Definition at line 4650 of file template.cpp.
Referenced by tokenize().
|
private |
Definition at line 4648 of file template.cpp.
Referenced by tokenize().
|
private |
Definition at line 4649 of file template.cpp.
Referenced by tokenize().
|
private |
Definition at line 4651 of file template.cpp.
Referenced by setOpenCloseCharacters(), TemplateLexer(), and tokenize().