srchilite::DelimitedLangElem Class Reference
Inheritance diagram for srchilite::DelimitedLangElem:
Collaboration diagram for srchilite::DelimitedLangElem:
Public Member Functions
virtual const std::string
toString () const
return the string representation (with preprocessing)
More...
return the original representation (without any preprocessing); this is useful for printing errors
More...
void
setExit (unsigned int level=1)
Sets the "exit" property of this element (i.e., if the element is match then exit one state)
More...
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)
Sets the state for which this element represents the start.
More...
const std::string getName () const
bool isRedef () const
void setRedef ()
bool isSubst () const
void setSubst ()
void
setParserInfo (const std::string &
name, unsigned int l)
Public Attributes
std::string filename
unsigned int line
Private Attributes
bool multiline
bool nested
Constructor & Destructor Documentation
srchilite::DelimitedLangElem::DelimitedLangElem
(
const std::string &
n,
bool
multi,
bool
nes
)
- Parameters
-
n the name of the element
s the starting regular expression for the element
e the ending regular expression
es the escaping sequence (if any)
multi whether this element spans multiple lines
nes whether this element can be nested
Member Function Documentation
bool srchilite::srchilite::StateStartLangElem::exitAll
(
)
const
inlineinherited
- Returns
- whether the "exit" property is set
StringDef* srchilite::DelimitedLangElem::getEnd
(
)
const
inline
StringDef* srchilite::DelimitedLangElem::getEscape
(
)
const
inline
unsigned int srchilite::srchilite::StateStartLangElem::getExit
(
)
const
inlineinherited
- Returns
- whether the "exit all" property is set
StringDef* srchilite::DelimitedLangElem::getStart
(
)
const
inline
- Returns
- the starting string
StateLangElem* srchilite::srchilite::StateStartLangElem::getStateLangElem
(
)
const
inlineinherited
- Returns
- the state for which this element represents the start
bool srchilite::DelimitedLangElem::isMultiline
(
)
const
inline
- Returns
- whether this element can span multiple lines
bool srchilite::DelimitedLangElem::isNested
(
)
const
inline
- Returns
- whether this element can be nested
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)
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
virtual const std::string srchilite::DelimitedLangElem::toString
(
)
const
virtual
virtual const std::string srchilite::DelimitedLangElem::toStringOriginal
(
)
const
virtual
return the original representation (without any preprocessing); this is useful for printing errors
- Returns
- the original representation
Implements srchilite::srchilite::LangElem.
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: