]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/Parser.h
removed lazy fwd headers
[l2e.git] / src / loader / Parser.h
index fd8f2cfad52fd3d536fc1b013268d60e72de4f1d..addb9dacac525b072f385c9896fa30efe55c4ddd 100644 (file)
@@ -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 <fstream>
 
 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;