Source-highlight Library
Public Member Functions | Public Attributes | Private Attributes | List of all members
srchilite::srchilite::LangElem Class Referenceabstract
Inheritance diagram for srchilite::srchilite::LangElem:
Inheritance graph
[legend]
Collaboration diagram for srchilite::srchilite::LangElem:
Collaboration graph
[legend]

Public Member Functions

  LangElem (const std::string &n)
 
const std::string  getName () const
 
virtual const std::string  toString () const
  return the string representation (with preprocessing) More...
 
virtual const std::string  toStringOriginal () const =0
  return the original representation (without any preprocessing); this is useful for printing errors More...
 
bool  isRedef () const
 
void  setRedef ()
 
bool  isSubst () const
 
void  setSubst ()
 
const std::string  toStringParserInfo () const
 
virtual void  dispatch_build (HighlightStateBuilder *, HighlightState *state)
 
virtual void  dispatch_collect_const (LangElemsPrinter *)
 
void  setParserInfo (const std::string &name, unsigned int l)
 
void  setParserInfo (const ParserInfo *p)
 

Public Attributes

std::string  filename
 
unsigned int  line
 

Private Attributes

const std::string  name
  the name for this language element
 
bool  redef
  whether this redefs an existing language element
 
bool  subst
 

Member Function Documentation

virtual const std::string srchilite::srchilite::LangElem::toString ( ) const
inlinevirtual

return the string representation (with preprocessing)

Returns
the string representation

Reimplemented in srchilite::DelimitedLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::NamedSubExpsLangElem, srchilite::srchilite::StateLangElem, srchilite::StateLangElem, srchilite::srchilite::StateStartLangElem, srchilite::StateStartLangElem, srchilite::srchilite::StringListLangElem, and srchilite::StringListLangElem.

virtual const std::string srchilite::srchilite::LangElem::toStringOriginal ( ) const
pure virtual

return the original representation (without any preprocessing); this is useful for printing errors

Returns
the original representation

Implemented in srchilite::DelimitedLangElem, srchilite::srchilite::DelimitedLangElem, srchilite::srchilite::NamedSubExpsLangElem, srchilite::NamedSubExpsLangElem, srchilite::srchilite::StateLangElem, srchilite::StateLangElem, srchilite::srchilite::StringListLangElem, and srchilite::StringListLangElem.

const std::string srchilite::LangElem::toStringParserInfo ( ) const
Returns
a string representation of the ParserInfo struct

The documentation for this class was generated from the following files:
  • /home/bettini/work/source-highlight/src-highlite/lib/srchilite/highlightstatebuilder.cpp
  • /home/bettini/work/source-highlight/src-highlite/lib/srchilite/langelem.cpp
  • /home/bettini/work/source-highlight/src-highlite/lib/srchilite/langelemsprinter.cpp

AltStyle によって変換されたページ (->オリジナル) /