A language element that may start a new state/environment. More...
#include <statestartlangelem.h>
Inherits srchilite::srchilite::LangElem.
Public Member Functions | |
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 |
const std::string | getName () const |
const std::string | getName () const |
const std::string | getName () const |
const std::string | getName () const |
const std::string | getName () const |
const std::string | getName () const |
const std::string | getName () const |
const std::string | getName () const |
const std::string | getName () const |
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 | |
virtual const std::string | toStringOriginal () const =0 |
return the original representation (without any preprocessing); this is useful for printing errors | |
virtual const std::string | toStringOriginal () const =0 |
return the original representation (without any preprocessing); this is useful for printing errors | |
virtual const std::string | toStringOriginal () const =0 |
return the original representation (without any preprocessing); this is useful for printing errors | |
virtual const std::string | toStringOriginal () const =0 |
return the original representation (without any preprocessing); this is useful for printing errors | |
virtual const std::string | toStringOriginal () const =0 |
return the original representation (without any preprocessing); this is useful for printing errors | |
virtual const std::string | toStringOriginal () const =0 |
return the original representation (without any preprocessing); this is useful for printing errors | |
virtual const std::string | toStringOriginal () const =0 |
return the original representation (without any preprocessing); this is useful for printing errors | |
virtual const std::string | toStringOriginal () const =0 |
return the original representation (without any preprocessing); this is useful for printing errors | |
virtual const std::string | toStringOriginal () const =0 |
return the original representation (without any preprocessing); this is useful for printing errors | |
virtual const std::string | toStringOriginal () const =0 |
return the original representation (without any preprocessing); this is useful for printing errors | |
bool | isRedef () const |
bool | isRedef () const |
bool | isRedef () const |
bool | isRedef () const |
bool | isRedef () const |
bool | isRedef () const |
bool | isRedef () const |
bool | isRedef () const |
bool | isRedef () const |
bool | isRedef () const |
bool | isRedef () const |
void | setRedef () |
void | setRedef () |
void | setRedef () |
void | setRedef () |
void | setRedef () |
void | setRedef () |
void | setRedef () |
void | setRedef () |
void | setRedef () |
void | setRedef () |
void | setRedef () |
bool | isSubst () const |
bool | isSubst () const |
bool | isSubst () const |
bool | isSubst () const |
bool | isSubst () const |
bool | isSubst () const |
bool | isSubst () const |
bool | isSubst () const |
bool | isSubst () const |
bool | isSubst () const |
bool | isSubst () const |
void | setSubst () |
void | setSubst () |
void | setSubst () |
void | setSubst () |
void | setSubst () |
void | setSubst () |
void | setSubst () |
void | setSubst () |
void | setSubst () |
void | setSubst () |
void | setSubst () |
const std::string | toStringParserInfo () const |
const std::string | toStringParserInfo () const |
const std::string | toStringParserInfo () const |
const std::string | toStringParserInfo () const |
const std::string | toStringParserInfo () const |
const std::string | toStringParserInfo () const |
const std::string | toStringParserInfo () const |
const std::string | toStringParserInfo () const |
const std::string | toStringParserInfo () const |
const std::string | toStringParserInfo () const |
const std::string | toStringParserInfo () const |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
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) |
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) |
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) |
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) |
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) |
void | setParserInfo (const std::string &name, unsigned int l) |
void | setParserInfo (const ParserInfo *p) |
Public Attributes | |
std::string | filename |
unsigned int | line |
Private Attributes | |
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. |
A language element that may start a new state/environment.
srchilite::StateStartLangElem::StateStartLangElem | ( | const std::string & | n, | |
unsigned int | exit = 0 , |
|||
bool | all = false | |||
) |
names | the element names (one for each subexpression) | |
exit | whether to exit a number of states (default 0) | |
all | whether to exit all states |
bool srchilite::StateStartLangElem::exitAll | ( | ) | const [inline] |
unsigned int srchilite::StateStartLangElem::getExit | ( | ) | const [inline] |
StateLangElem* srchilite::StateStartLangElem::getStateLangElem | ( | ) | const [inline] |
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).
level | the exit level (default to 1) |
void srchilite::StateStartLangElem::setStateLangElem | ( | StateLangElem * | s | ) | [inline] |
Sets the state for which this element represents the start.
s | the state for which this element represents the start |
virtual const std::string srchilite::StateStartLangElem::toString | ( | ) | const [virtual] |
return the string representation (with preprocessing)
Reimplemented from srchilite::srchilite::LangElem.
virtual const std::string srchilite::srchilite::LangElem::toStringOriginal | ( | ) | const [pure virtual, inherited] |
return the original representation (without any preprocessing); this is useful for printing errors
Implemented in srchilite::DelimitedLangElem, srchilite::srchilite::StringListLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::NamedSubExpsLangElem, srchilite::StateLangElem, and srchilite::StringListLangElem.
virtual const std::string srchilite::srchilite::LangElem::toStringOriginal | ( | ) | const [pure virtual, inherited] |
return the original representation (without any preprocessing); this is useful for printing errors
Implemented in srchilite::DelimitedLangElem, srchilite::srchilite::StringListLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::NamedSubExpsLangElem, srchilite::StateLangElem, and srchilite::StringListLangElem.
virtual const std::string srchilite::srchilite::LangElem::toStringOriginal | ( | ) | const [pure virtual, inherited] |
return the original representation (without any preprocessing); this is useful for printing errors
Implemented in srchilite::DelimitedLangElem, srchilite::srchilite::StringListLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::NamedSubExpsLangElem, srchilite::StateLangElem, and srchilite::StringListLangElem.
virtual const std::string srchilite::srchilite::LangElem::toStringOriginal | ( | ) | const [pure virtual, inherited] |
return the original representation (without any preprocessing); this is useful for printing errors
Implemented in srchilite::DelimitedLangElem, srchilite::srchilite::StringListLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::NamedSubExpsLangElem, srchilite::StateLangElem, and srchilite::StringListLangElem.
virtual const std::string srchilite::srchilite::LangElem::toStringOriginal | ( | ) | const [pure virtual, inherited] |
return the original representation (without any preprocessing); this is useful for printing errors
Implemented in srchilite::DelimitedLangElem, srchilite::srchilite::StringListLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::NamedSubExpsLangElem, srchilite::StateLangElem, and srchilite::StringListLangElem.
virtual const std::string srchilite::srchilite::LangElem::toStringOriginal | ( | ) | const [pure virtual, inherited] |
return the original representation (without any preprocessing); this is useful for printing errors
Implemented in srchilite::DelimitedLangElem, srchilite::srchilite::StringListLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::NamedSubExpsLangElem, srchilite::StateLangElem, and srchilite::StringListLangElem.
virtual const std::string srchilite::srchilite::LangElem::toStringOriginal | ( | ) | const [pure virtual, inherited] |
return the original representation (without any preprocessing); this is useful for printing errors
Implemented in srchilite::DelimitedLangElem, srchilite::srchilite::StringListLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::NamedSubExpsLangElem, srchilite::StateLangElem, and srchilite::StringListLangElem.
virtual const std::string srchilite::srchilite::LangElem::toStringOriginal | ( | ) | const [pure virtual, inherited] |
return the original representation (without any preprocessing); this is useful for printing errors
Implemented in srchilite::DelimitedLangElem, srchilite::srchilite::StringListLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::NamedSubExpsLangElem, srchilite::StateLangElem, and srchilite::StringListLangElem.
virtual const std::string srchilite::srchilite::LangElem::toStringOriginal | ( | ) | const [pure virtual, inherited] |
return the original representation (without any preprocessing); this is useful for printing errors
Implemented in srchilite::DelimitedLangElem, srchilite::srchilite::StringListLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::NamedSubExpsLangElem, srchilite::StateLangElem, and srchilite::StringListLangElem.
virtual const std::string srchilite::srchilite::LangElem::toStringOriginal | ( | ) | const [pure virtual, inherited] |
return the original representation (without any preprocessing); this is useful for printing errors
Implemented in srchilite::DelimitedLangElem, srchilite::srchilite::StringListLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::NamedSubExpsLangElem, srchilite::StateLangElem, and srchilite::StringListLangElem.
virtual const std::string srchilite::srchilite::LangElem::toStringOriginal | ( | ) | const [pure virtual, inherited] |
return the original representation (without any preprocessing); this is useful for printing errors
Implemented in srchilite::DelimitedLangElem, srchilite::srchilite::StringListLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::srchilite::StateLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::NamedSubExpsLangElem, srchilite::StateLangElem, and srchilite::StringListLangElem.
const std::string srchilite::srchilite::LangElem::toStringParserInfo | ( | ) | const [inherited] |
const std::string srchilite::srchilite::LangElem::toStringParserInfo | ( | ) | const [inherited] |
const std::string srchilite::srchilite::LangElem::toStringParserInfo | ( | ) | const [inherited] |
const std::string srchilite::srchilite::LangElem::toStringParserInfo | ( | ) | const [inherited] |
const std::string srchilite::srchilite::LangElem::toStringParserInfo | ( | ) | const [inherited] |
const std::string srchilite::srchilite::LangElem::toStringParserInfo | ( | ) | const [inherited] |
const std::string srchilite::srchilite::LangElem::toStringParserInfo | ( | ) | const [inherited] |
const std::string srchilite::srchilite::LangElem::toStringParserInfo | ( | ) | const [inherited] |
const std::string srchilite::srchilite::LangElem::toStringParserInfo | ( | ) | const [inherited] |
const std::string srchilite::srchilite::LangElem::toStringParserInfo | ( | ) | const [inherited] |
const std::string srchilite::LangElem::toStringParserInfo | ( | ) | const [inherited] |