X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FParser.h;h=75cd5fec48740fe0bbf59638572dc7f3c852ee19;hb=d71217e2be1466726581146000a0f61620423e9b;hp=fd8f2cfad52fd3d536fc1b013268d60e72de4f1d;hpb=d5959073b2c413ba1bd6f3d14bc8bcf59304e488;p=l2e.git diff --git a/src/loader/Parser.h b/src/loader/Parser.h index fd8f2cf..75cd5fe 100644 --- a/src/loader/Parser.h +++ b/src/loader/Parser.h @@ -1,13 +1,7 @@ -/* - * Parser.h - * - * Created on: Aug 26, 2012 - * Author: holy - */ - #ifndef LOADER_PARSER_H_ #define LOADER_PARSER_H_ +#include "fwd.h" #include "ParsedSource.h" #include "Tokenizer.h" @@ -18,11 +12,6 @@ namespace loader { -class Declaration; -class Definition; -class Literal; -class PropertyList; - class Parser { public: @@ -66,6 +55,7 @@ private: Literal *ParseArray(); Literal *ParseColor(); Literal *ParseVector(); + Literal *ParseScript(); private: void AssertTokenType(Tokenizer::Token::Type actual, Tokenizer::Token::Type expected); @@ -73,6 +63,7 @@ private: bool BeginningOfLiteral(const Tokenizer::Token &) const; bool BeginningOfPrimitiveLiteral(const Tokenizer::Token &) const; bool BeginOfPropertyList(const Tokenizer::Token &) const; + bool BeginningOfScriptLiteral(const Tokenizer::Token &) const; private: std::string file;