12#ifndef STATELANGELEM_H
13#define STATELANGELEM_H
15#include "statestartlangelem.h"
22class StateStartLangElem;
33class HighlightStateBuilder;
34class 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.hpp:33
Represents a state during the highlighting (e.g., comment state, string state, etc....
Definition highlightstate.h:47
Prints all the language elements.
Definition langelemsprinter.hpp:35
collection of LangElem objects
Definition langelems.h:34
a language element that introduces a new state pattern Composite
Definition statelangelem.h:38
virtual const std::string toString() const
return the string representation (with preprocessing)
Definition statelangelem.cpp:40
virtual const std::string toStringOriginal() const
return the original representation (without any preprocessing); this is useful for printing errors
Definition statelangelem.cpp:49
A language element that may start a new state/environment.
Definition statestartlangelem.h:25
C++ class: doctemplate.h.
Definition bufferedoutput.cpp:13