#include <scripthighlighter.hpp>
|
| virtual bool | parseInt (int value, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner) |
| |
| virtual bool | parseFloat (float value, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner) |
| |
| virtual bool | parseName (const std::string &name, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner) |
| |
| virtual bool | parseKeyword (int keyword, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner) |
| |
| virtual bool | parseSpecial (int code, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner) |
| |
| virtual bool | parseComment (const std::string &comment, const Compiler::TokenLoc &loc, Compiler::Scanner &scanner) |
| |
| virtual void | parseEOF (Compiler::Scanner &scanner) |
| | Handle EOF token. More...
|
| |
| void | highlight (const Compiler::TokenLoc &loc, Type type) |
| |
| | Parser (ErrorHandler &errorHandler, const Context &context) |
| | constructor More...
|
| |
| virtual | ~Parser () |
| | destructor More...
|
| |
| virtual void | reset () |
| | Reset parser to clean state. More...
|
| |
| void | setOptional (bool optional) |
| |
| void | start () |
| | Mark parser as non-empty (at least one token has been parser). More...
|
| |
| bool | isEmpty () const |
| | Has anything been parsed? More...
|
| |
| void | reportSeriousError (const std::string &message, const TokenLoc &loc) |
| | Report the error and throw a exception. More...
|
| |
| void | reportWarning (const std::string &message, const TokenLoc &loc) |
| | Report the warning without throwing an exception. More...
|
| |
| void | reportEOF () |
| | Report an unexpected EOF condition. More...
|
| |
| ErrorHandler & | getErrorHandler () |
| | Return error handler. More...
|
| |
| const Context & | getContext () const |
| | Return context. More...
|
| |
| Enumerator |
|---|
| Mode_General |
|
| Mode_Console |
|
| Mode_Dialogue |
|
| Enumerator |
|---|
| Type_Int |
|
| Type_Float |
|
| Type_Name |
|
| Type_Keyword |
|
| Type_Special |
|
| Type_Comment |
|
| Type_Id |
|
| CSVWorld::ScriptHighlighter::ScriptHighlighter |
( |
const CSMWorld::Data & |
data, |
|
|
Mode |
mode, |
|
|
QTextDocument * |
parent |
|
) |
| |
| void CSVWorld::ScriptHighlighter::highlightBlock |
( |
const QString & |
text | ) |
|
|
virtual |
| void CSVWorld::ScriptHighlighter::invalidateIds |
( |
| ) |
|
Handle comment token.
- Returns
- fetch another token?
Reimplemented from Compiler::Parser.
Handle a float token.
- Returns
- fetch another token?
Reimplemented from Compiler::Parser.
Handle an int token.
- Returns
- fetch another token?
Reimplemented from Compiler::Parser.
Handle a keyword token.
- Returns
- fetch another token?
Reimplemented from Compiler::Parser.
Handle a name token.
- Returns
- fetch another token?
Reimplemented from Compiler::Parser.
Handle a special character token.
- Returns
- fetch another token?
Reimplemented from Compiler::Parser.
| Mode CSVWorld::ScriptHighlighter::mMode |
|
private |
| std::map<Type, QTextCharFormat> CSVWorld::ScriptHighlighter::mScheme |
|
private |
The documentation for this class was generated from the following files: