An element with subparts (subexpressions), each with a possible different name.
More...
#include <namedsubexpslangelem.h>
|
|
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()
| srchilite::NamedSubExpsLangElem::NamedSubExpsLangElem |
( |
const ElementNames * |
names, |
|
|
StringDef * |
def, |
|
|
bool |
exit = false, |
|
|
bool |
all = false |
|
) |
| |
- 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_build()
◆ dispatch_collect_const()
| void NamedSubExpsLangElem::dispatch_collect_const |
( |
LangElemsPrinter * |
LangElemsPrinter_o | ) |
|
|
virtual |
◆ exitAll()
| bool srchilite::StateStartLangElem::exitAll |
( |
| ) |
const |
|
inlineinherited |
- Returns
- whether the "exit" property is set
◆ getElementNames()
| const ElementNames * srchilite::NamedSubExpsLangElem::getElementNames |
( |
| ) |
const |
|
inline |
- Returns
- the list of all the element names
◆ getExit()
| unsigned int srchilite::StateStartLangElem::getExit |
( |
| ) |
const |
|
inlineinherited |
- Returns
- whether the "exit all" property is set
◆ getRegexpDef()
| const StringDef * srchilite::NamedSubExpsLangElem::getRegexpDef |
( |
| ) |
const |
|
inline |
- Returns
- the complete expression for this element
◆ getStateLangElem()
| StateLangElem * srchilite::StateStartLangElem::getStateLangElem |
( |
| ) |
const |
|
inlineinherited |
- Returns
- the state for which this element represents the start
◆ setExit()
| void 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()
| void 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()
| const std::string srchilite::NamedSubExpsLangElem::toString |
( |
| ) |
const |
|
virtual |
◆ toStringOriginal()
| const std::string srchilite::NamedSubExpsLangElem::toStringOriginal |
( |
| ) |
const |
|
virtual |
- Returns
- a string representatio of the original expression (without any preprocessing)
Implements srchilite::LangElem.
◆ 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/namedsubexpslangelem.h
- source-highlight-3.1.9/lib/srchilite/highlightstatebuilder_dbtab.cc
- source-highlight-3.1.9/lib/srchilite/langelemsprinter_dbtab.cc
- source-highlight-3.1.9/lib/srchilite/namedsubexpslangelem.cpp