Source-highlight Library
srchilite::srchilite::StateStartLangElem Class Reference

A language element that may start a new state/environment. More...

Inheritance diagram for srchilite::srchilite::StateStartLangElem:
Collaboration diagram for srchilite::srchilite::StateStartLangElem:

List of all members.

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
StateLangElemgetStateLangElem () const
void setStateLangElem (StateLangElem *s)
 Sets the state for which this element represents the start.
 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
StateLangElemgetStateLangElem () const
void setStateLangElem (StateLangElem *s)
 Sets the state for which this element represents the start.
 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
StateLangElemgetStateLangElem () const
void setStateLangElem (StateLangElem *s)
 Sets the state for which this element represents the start.
 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
StateLangElemgetStateLangElem () const
void setStateLangElem (StateLangElem *s)
 Sets the state for which this element represents the start.
 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
StateLangElemgetStateLangElem () const
void setStateLangElem (StateLangElem *s)
 Sets the state for which this element represents the start.
 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
StateLangElemgetStateLangElem () 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
StateLangElemstatelangelem
 the possible State of which we represent the start.

Detailed Description

A language element that may start a new state/environment.


Constructor & Destructor Documentation

srchilite::StateStartLangElem::StateStartLangElem ( const std::string &  n,
unsigned int  exit = 0,
bool  all = false 
)
Parameters:
namesthe element names (one for each subexpression)
exitwhether to exit a number of states (default 0)
allwhether to exit all states
srchilite::srchilite::StateStartLangElem::StateStartLangElem ( const std::string &  n,
unsigned int  exit = 0,
bool  all = false 
)
Parameters:
namesthe element names (one for each subexpression)
exitwhether to exit a number of states (default 0)
allwhether to exit all states
srchilite::srchilite::StateStartLangElem::StateStartLangElem ( const std::string &  n,
unsigned int  exit = 0,
bool  all = false 
)
Parameters:
namesthe element names (one for each subexpression)
exitwhether to exit a number of states (default 0)
allwhether to exit all states
srchilite::srchilite::StateStartLangElem::StateStartLangElem ( const std::string &  n,
unsigned int  exit = 0,
bool  all = false 
)
Parameters:
namesthe element names (one for each subexpression)
exitwhether to exit a number of states (default 0)
allwhether to exit all states
srchilite::srchilite::StateStartLangElem::StateStartLangElem ( const std::string &  n,
unsigned int  exit = 0,
bool  all = false 
)
Parameters:
namesthe element names (one for each subexpression)
exitwhether to exit a number of states (default 0)
allwhether to exit all states
srchilite::srchilite::StateStartLangElem::StateStartLangElem ( const std::string &  n,
unsigned int  exit = 0,
bool  all = false 
)
Parameters:
namesthe element names (one for each subexpression)
exitwhether to exit a number of states (default 0)
allwhether to exit all states

Member Function Documentation

Returns:
whether the "exit" property is set
Returns:
whether the "exit" property is set
Returns:
whether the "exit" property is set
Returns:
whether the "exit" property is set
Returns:
whether the "exit" property is set
Returns:
whether the "exit" property is set
unsigned int srchilite::srchilite::StateStartLangElem::getExit ( ) const [inline]
Returns:
whether the "exit all" property is set
unsigned int srchilite::srchilite::StateStartLangElem::getExit ( ) const [inline]
Returns:
whether the "exit all" property is set
unsigned int srchilite::srchilite::StateStartLangElem::getExit ( ) const [inline]
Returns:
whether the "exit all" property is set
unsigned int srchilite::srchilite::StateStartLangElem::getExit ( ) const [inline]
Returns:
whether the "exit all" property is set
unsigned int srchilite::srchilite::StateStartLangElem::getExit ( ) const [inline]
Returns:
whether the "exit all" property is set
unsigned int srchilite::srchilite::StateStartLangElem::getExit ( ) const [inline]
Returns:
whether the "exit all" property is set
Returns:
the state for which this element represents the start
Returns:
the state for which this element represents the start
Returns:
the state for which this element represents the start
Returns:
the state for which this element represents the start
Returns:
the state for which this element represents the start
Returns:
the state for which this element represents the start
void srchilite::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)

Parameters:
levelthe exit level (default to 1)
void srchilite::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)

Parameters:
levelthe exit level (default to 1)
void srchilite::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)

Parameters:
levelthe exit level (default to 1)
void srchilite::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)

Parameters:
levelthe exit level (default to 1)
void srchilite::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)

Parameters:
levelthe exit level (default to 1)
void srchilite::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)

Parameters:
levelthe exit level (default to 1)

Sets the state for which this element represents the start.

Parameters:
sthe state for which this element represents the start

Sets the state for which this element represents the start.

Parameters:
sthe state for which this element represents the start

Sets the state for which this element represents the start.

Parameters:
sthe state for which this element represents the start

Sets the state for which this element represents the start.

Parameters:
sthe state for which this element represents the start

Sets the state for which this element represents the start.

Parameters:
sthe state for which this element represents the start

Sets the state for which this element represents the start.

Parameters:
sthe state for which this element represents the start
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
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 files: