X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fparser.h;h=1572128ffc6bb2378e0e465433a6e01240d6bbe4;hb=bd8816692056230c36504dcccd76c6946dff47b1;hp=58b14b502f5bf550e1285098a651662fcf653bbe;hpb=9d798ac368bfd236a7632a3a15e51bd1112ea63d;p=libs%2Fgl.git diff --git a/source/glsl/parser.h b/source/glsl/parser.h index 58b14b50..1572128f 100644 --- a/source/glsl/parser.h +++ b/source/glsl/parser.h @@ -16,6 +16,7 @@ class Parser { private: std::string source; + unsigned base_index; unsigned source_index; Tokenizer tokenizer; Preprocessor preprocessor; @@ -34,10 +35,13 @@ public: private: void parse_source(const std::string &, unsigned); void set_required_version(const Version &); + void source_reference(unsigned, const std::string &); void stage_change(Stage::Type); + void line_change(int, unsigned); std::string expect_type(); std::string expect_identifier(); + int expect_integer(); bool check(const std::string &); static bool is_interface_qualifier(const std::string &);