X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FParser.h;h=a1c98c83f188a9b5c19c9e20803adc91ec43d5a5;hb=4309d259becd96ead792678257e910c03a6b4a3d;hp=fd8f2cfad52fd3d536fc1b013268d60e72de4f1d;hpb=d5959073b2c413ba1bd6f3d14bc8bcf59304e488;p=l2e.git diff --git a/src/loader/Parser.h b/src/loader/Parser.h index fd8f2cf..a1c98c8 100644 --- a/src/loader/Parser.h +++ b/src/loader/Parser.h @@ -1,14 +1,15 @@ -/* - * Parser.h - * - * Created on: Aug 26, 2012 - * Author: holy - */ - #ifndef LOADER_PARSER_H_ #define LOADER_PARSER_H_ -#include "ParsedSource.h" +namespace loader { + class Definition; + class Declaration; + class Literal; + class ParsedSource; + class PropertyList; + class Value; +} + #include "Tokenizer.h" #include @@ -18,11 +19,6 @@ namespace loader { -class Declaration; -class Definition; -class Literal; -class PropertyList; - class Parser { public: @@ -66,6 +62,7 @@ private: Literal *ParseArray(); Literal *ParseColor(); Literal *ParseVector(); + Literal *ParseScript(); private: void AssertTokenType(Tokenizer::Token::Type actual, Tokenizer::Token::Type expected); @@ -73,6 +70,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; @@ -85,4 +83,4 @@ private: } -#endif /* LOADER_PARSER_H_ */ +#endif