24 #ifndef __VANILLA_PARSER_INCLUDE__
25 #define __VANILLA_PARSER_INCLUDE__
36 namespace VanillaParserSpace
49 struct GLIP_API Element
63 std::string sourceName,
67 std::vector<std::string> arguments;
75 Element(
const Element& cpy);
76 const Element& operator=(
const Element& cpy);
78 bool empty(
void)
const;
79 std::string getCleanBody(
void)
const;
80 std::string getCode(
void)
const;
84 class GLIP_API VanillaParser
87 std::string sourceName;
89 bool compare(
const std::string& code,
int& k,
const std::string token);
90 void testAndSaveCurrentElement(Element::Field& current,
const Element::Field& next, Element& el);
91 void record(Element& el,
const Element::Field& field,
char c,
int currentLine);
94 std::vector<Element> elements;
96 VanillaParser(
const std::string& code,
const std::string& _sourceName=
"",
int startLine=1);
97 const std::string& getSourceName(
void)
const;
98 VanillaParser& operator<<(
const VanillaParser& subParser);
Definition: Component.hpp:32