A language element consisting of a list of strings.
More...
#include <stringlistlangelem.h>
|
|
std::string | filename |
| |
|
unsigned int | line |
| |
A language element consisting of a list of strings.
◆ StringListLangElem()
| srchilite::StringListLangElem::StringListLangElem |
( |
const std::string & |
n, |
|
|
StringDefs * |
defs, |
|
|
bool |
nons |
|
) |
| |
- Parameters
-
| n | the name for this element |
| defs | the alternatives for this element |
| nons | whether the alternatives are to be considered case unsensitive |
◆ exitAll()
| bool srchilite::srchilite::StateStartLangElem::exitAll |
( |
| ) |
const |
|
inlineinherited |
- Returns
- whether the "exit" property is set
◆ getAlternatives()
| StringDefs* srchilite::StringListLangElem::getAlternatives |
( |
| ) |
const |
|
inline |
- Returns
- the collection of all the alternatives of this element
◆ getExit()
| unsigned int srchilite::srchilite::StateStartLangElem::getExit |
( |
| ) |
const |
|
inlineinherited |
- Returns
- whether the "exit all" property is set
◆ getStateLangElem()
| StateLangElem* srchilite::srchilite::StateStartLangElem::getStateLangElem |
( |
| ) |
const |
|
inlineinherited |
- Returns
- the state for which this element represents the start
◆ isCaseSensitive()
| bool srchilite::StringListLangElem::isCaseSensitive |
( |
| ) |
const |
|
inline |
- Returns
- whether the alternatives are case sensitive
◆ setExit()
| 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()
| 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()
| virtual const std::string srchilite::StringListLangElem::toString |
( |
| ) |
const |
|
virtual |
◆ toStringOriginal()
| virtual const std::string srchilite::StringListLangElem::toStringOriginal |
( |
| ) |
const |
|
virtual |
return the original representation (without any preprocessing); this is useful for printing errors
- Returns
- the original representation
Implements srchilite::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 file: