X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FParser.h;h=75cd5fec48740fe0bbf59638572dc7f3c852ee19;hb=d71217e2be1466726581146000a0f61620423e9b;hp=ebfeafaacf0f9c081a0c60512818647ff0311350;hpb=f3230836ca2e263e84b58ffec6645c0f77439117;p=l2e.git diff --git a/src/loader/Parser.h b/src/loader/Parser.h index ebfeafa..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,12 +55,15 @@ private: Literal *ParseArray(); Literal *ParseColor(); Literal *ParseVector(); + Literal *ParseScript(); private: void AssertTokenType(Tokenizer::Token::Type actual, Tokenizer::Token::Type expected); void AssertTokenType(Tokenizer::Token::Type actual, Tokenizer::Token::Type expected, const std::string &msg); 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;