]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programparser.h
Add getter for animation duration
[libs/gl.git] / source / programparser.h
index be6da197481aa3d264c7516427b55859e40e04d9..fa37118de262efe46c02ad0c6c13dcdf43b4517c 100644 (file)
@@ -40,6 +40,9 @@ private:
        std::string source_name;
        unsigned current_line;
        std::string::const_iterator iter;
+       std::string::const_iterator source_end;
+       bool allow_preprocess;
+       bool allow_stage_change;
        std::string last_token;
        std::deque<std::string> next_tokens;
        ProgramSyntax::Module *module;
@@ -67,7 +70,7 @@ private:
        std::string parse_identifier();
        std::string parse_number();
        std::string parse_other();
-       bool skip_comment_and_whitespace();
+       void skip_comment_and_whitespace();
        void expect(const std::string &);
        std::string expect_type();
        std::string expect_identifier();
@@ -81,6 +84,11 @@ private:
        bool is_type(const std::string &);
        bool is_identifier(const std::string &);
 
+       void preprocess();
+       void preprocess_pragma();
+       void preprocess_pragma_msp();
+       void preprocess_stage();
+
        RefPtr<ProgramSyntax::Node> parse_global_declaration();
        RefPtr<ProgramSyntax::Node> parse_statement();
        RefPtr<ProgramSyntax::Import> parse_import();