A language element that may start a new state/environment.
More...
#include <statestartlangelem.h>
|
| | StateStartLangElem (const std::string &n, unsigned int exit=0, bool all=false) |
| |
| virtual const std::string | toString () const |
| | return the string representation (with preprocessing)
|
| |
| void | setExit (unsigned int level=1) |
| | Sets the "exit" property of this element (i.e., if the element is match then exit one state)
|
| |
|
void | setExitAll () |
| | Sets the "exit all" property of this element (i.e., if the element is match then exit all states and get back to the main initial state)
|
| |
| bool | exitAll () const |
| |
| unsigned int | getExit () const |
| |
| StateLangElem * | getStateLangElem () const |
| |
| void | setStateLangElem (StateLangElem *s) |
| | Sets the state for which this element represents the start.
|
| |
|
const std::string | getName () const |
| |
| virtual const std::string | toStringOriginal () const =0 |
| | return the original representation (without any preprocessing); this is useful for printing errors
|
| |
|
bool | isRedef () const |
| |
|
void | setRedef () |
| |
|
bool | isSubst () const |
| |
|
void | setSubst () |
| |
| const std::string | toStringParserInfo () const |
| |
|
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
| |
|
virtual void | dispatch_collect_const (LangElemsPrinter *) |
| |
|
void | setParserInfo (const std::string &name, unsigned int l) |
| |
|
void | setParserInfo (const ParserInfo *p) |
| |
|
|
std::string | filename |
| |
|
unsigned int | line |
| |
|
|
unsigned int | exit |
| | the exit level
|
| |
|
bool | exit_all |
| | whether to exit all states
|
| |
|
StateLangElem * | statelangelem |
| | the possible State of which we represent the start.
|
| |
|
const std::string | name |
| | the name for this language element
|
| |
|
bool | redef |
| | whether this redefs an existing language element
|
| |
|
bool | subst |
| |
A language element that may start a new state/environment.
◆ StateStartLangElem()
| srchilite::StateStartLangElem::StateStartLangElem |
( |
const std::string & |
n, |
|
|
unsigned int |
exit = 0, |
|
|
bool |
all = false |
|
) |
| |
- Parameters
-
| names | the element names (one for each subexpression) |
| exit | whether to exit a number of states (default 0) |
| all | whether to exit all states |
◆ exitAll()
| bool srchilite::StateStartLangElem::exitAll |
( |
| ) |
const |
|
inline |
- Returns
- whether the "exit" property is set
◆ getExit()
| unsigned int srchilite::StateStartLangElem::getExit |
( |
| ) |
const |
|
inline |
- Returns
- whether the "exit all" property is set
◆ getStateLangElem()
| StateLangElem * srchilite::StateStartLangElem::getStateLangElem |
( |
| ) |
const |
|
inline |
- Returns
- the state for which this element represents the start
◆ setExit()
| void srchilite::StateStartLangElem::setExit |
( |
unsigned int |
level = 1 | ) |
|
|
inline |
Sets the "exit" property of this element (i.e., if the element is match then exit one state)
- Parameters
-
| level | the exit level (default to 1) |
◆ setStateLangElem()
| void srchilite::StateStartLangElem::setStateLangElem |
( |
StateLangElem * |
s | ) |
|
|
inline |
Sets the state for which this element represents the start.
- Parameters
-
| s | the state for which this element represents the start |
◆ toString()
| const std::string srchilite::StateStartLangElem::toString |
( |
| ) |
const |
|
virtual |
◆ toStringOriginal()
| virtual const std::string srchilite::LangElem::toStringOriginal |
( |
| ) |
const |
|
pure virtualinherited |
◆ toStringParserInfo()
| const std::string srchilite::LangElem::toStringParserInfo |
( |
| ) |
const |
|
inherited |
- Returns
- a string representation of the ParserInfo struct
The documentation for this class was generated from the following files:
- source-highlight-3.1.9/lib/srchilite/statestartlangelem.h
- source-highlight-3.1.9/lib/srchilite/statestartlangelem.cpp