Source-highlight Library
|
a language element that introduces a new state pattern Composite More...
Public Member Functions | |
StateLangElem (const std::string &n, StateStartLangElem *start, LangElems *elems, bool st=false) | |
void | set_elems (LangElems *elems) |
void | set_state () |
virtual const std::string | toString () const |
return the string representation (with preprocessing) More... | |
virtual const std::string | toStringOriginal () const |
return the original representation (without any preprocessing); this is useful for printing errors More... | |
StateStartLangElem * | getStateStart () const |
bool | isState () const |
LangElems * | getElems () const |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
const std::string | getName () const |
bool | isRedef () const |
void | setRedef () |
bool | isSubst () const |
void | setSubst () |
const std::string | toStringParserInfo () const |
void | setParserInfo (const std::string &name, unsigned int l) |
void | setParserInfo (const ParserInfo *p) |
Public Attributes | |
std::string | filename |
unsigned int | line |
Private Attributes | |
StateStartLangElem * | statestartlangelem |
LangElems * | langelems |
bool | state |
a language element that introduces a new state pattern Composite
|
virtual |
return the string representation (with preprocessing)
Reimplemented from srchilite::srchilite::LangElem.
|
virtual |
return the original representation (without any preprocessing); this is useful for printing errors
Implements srchilite::srchilite::LangElem.
|
inherited |