An element with subparts (subexpressions), each with a possible different name.
More...
#include <namedsubexpslangelem.h>
|
| | NamedSubExpsLangElem (const ElementNames *names, StringDef *def, bool exit=false, bool all=false) |
| virtual const std::string | toString () const |
| virtual const std::string | toStringOriginal () const |
| const ElementNames * | getElementNames () const |
| const StringDef * | getRegexpDef () const |
|
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
| virtual void | dispatch_collect_const (LangElemsPrinter *) |
| 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 | 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).
|
|
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 |
| bool | exitAll () const |
| unsigned int | getExit () const |
| unsigned int | getExit () const |
| StateLangElem * | getStateLangElem () const |
| StateLangElem * | getStateLangElem () const |
| void | setStateLangElem (StateLangElem *s) |
| | Sets the state for which this element represents the start.
|
| void | setStateLangElem (StateLangElem *s) |
| | Sets the state for which this element represents the start.
|
|
const std::string | getName () const |
|
const std::string | getName () const |
|
bool | isRedef () const |
|
bool | isRedef () const |
|
void | setRedef () |
|
void | setRedef () |
|
bool | isSubst () const |
|
bool | isSubst () const |
|
void | setSubst () |
|
void | setSubst () |
| const std::string | toStringParserInfo () const |
| const std::string | toStringParserInfo () const |
|
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
|
void | setParserInfo (const std::string &name, unsigned int l) |
|
void | setParserInfo (const ParserInfo *p) |
|
void | setParserInfo (const std::string &name, unsigned int l) |
|
void | setParserInfo (const ParserInfo *p) |
|
|
std::string | filename |
|
unsigned int | line |
|
|
const ElementNames * | elementNames |
| | the element names
|
|
StringDef * | regexpDef |
| | the whole regular expression defiition
|
|
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 |
An element with subparts (subexpressions), each with a possible different name.
◆ NamedSubExpsLangElem()
- Parameters
-
| names | the element names (one for each subexpression) |
| def | the whole definition |
| exit | whether to exit one state |
| all | whether to exit all states |
◆ dispatch_collect_const()
| virtual void srchilite::NamedSubExpsLangElem::dispatch_collect_const |
( |
LangElemsPrinter * | | ) |
|
|
virtual |
◆ exitAll() [1/2]
| bool srchilite::srchilite::StateStartLangElem::exitAll |
( |
| ) |
const |
|
inlineinherited |
- Returns
- whether the "exit" property is set
◆ exitAll() [2/2]
| bool srchilite::srchilite::StateStartLangElem::exitAll |
( |
| ) |
const |
|
inlineinherited |
- Returns
- whether the "exit" property is set
◆ getElementNames()
- Returns
- the list of all the element names
◆ getExit() [1/2]
| unsigned int srchilite::srchilite::StateStartLangElem::getExit |
( |
| ) |
const |
|
inlineinherited |
- Returns
- whether the "exit all" property is set
◆ getExit() [2/2]
| unsigned int srchilite::srchilite::StateStartLangElem::getExit |
( |
| ) |
const |
|
inlineinherited |
- Returns
- whether the "exit all" property is set
◆ getRegexpDef()
- Returns
- the complete expression for this element
◆ getStateLangElem() [1/2]
| StateLangElem * srchilite::srchilite::StateStartLangElem::getStateLangElem |
( |
| ) |
const |
|
inlineinherited |
- Returns
- the state for which this element represents the start
◆ getStateLangElem() [2/2]
| StateLangElem * srchilite::srchilite::StateStartLangElem::getStateLangElem |
( |
| ) |
const |
|
inlineinherited |
- Returns
- the state for which this element represents the start
◆ setExit() [1/2]
| void srchilite::srchilite::StateStartLangElem::setExit |
( |
unsigned int | level = 1 | ) |
|
|
inlineinherited |
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) |
◆ setExit() [2/2]
| void srchilite::srchilite::StateStartLangElem::setExit |
( |
unsigned int | level = 1 | ) |
|
|
inlineinherited |
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() [1/2]
| void srchilite::srchilite::StateStartLangElem::setStateLangElem |
( |
StateLangElem * | s | ) |
|
|
inlineinherited |
Sets the state for which this element represents the start.
- Parameters
-
| s | the state for which this element represents the start |
◆ setStateLangElem() [2/2]
| void srchilite::srchilite::StateStartLangElem::setStateLangElem |
( |
StateLangElem * | s | ) |
|
|
inlineinherited |
Sets the state for which this element represents the start.
- Parameters
-
| s | the state for which this element represents the start |
◆ toString()
◆ toStringOriginal()
◆ toStringParserInfo() [1/2]
| const std::string srchilite::LangElem::toStringParserInfo |
( |
| ) |
const |
|
inherited |
- Returns
- a string representation of the ParserInfo struct
◆ toStringParserInfo() [2/2]
| const std::string srchilite::srchilite::LangElem::toStringParserInfo |
( |
| ) |
const |
|
inherited |
- Returns
- a string representation of the ParserInfo struct
The documentation for this class was generated from the following file:
- /cygdrive/d/a/scallywag/source-highlight/source-highlight-3.1.9-1.x86_64/src/source-highlight-3.1.9/lib/srchilite/namedsubexpslangelem.h