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