12 #ifndef STATELANGELEM_H
13 #define STATELANGELEM_H
15 #include "statestartlangelem.h"
16 #include "langelems.h"
22 class StateStartLangElem;
33 class HighlightStateBuilder;
34 class LangElemsPrinter;
49 void set_elems(
LangElems *elems) { langelems = elems; }
50 void set_state() { state =
true; }
52 virtual const std::string
toString()
const;
57 bool isState()
const {
return state; }
58 LangElems *getElems()
const {
return langelems; }
Builds an HighlightState from the language definition file collected structures.
Definition: highlightstatebuilder.h:22
Definition: langelem.h:23
collection of LangElem objects
Definition: langelems.h:33
Represents a state during the highlighting (e.g., comment state, string state, etc.)
Definition: highlightstate.h:47
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
A language element that may start a new state/environment.
Definition: statestartlangelem.h:25
virtual const std::string toStringOriginal() const
return the original representation (without any preprocessing); this is useful for printing errors ...
virtual const std::string toString() const
return the string representation (with preprocessing)
a language element that introduces a new state pattern Composite
Definition: statelangelem.h:37
Prints all the language elements.
Definition: langelemsprinter.h:26