X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fparser.h;h=cdb57ebc5b48850bae81f4af251e5a841b669504;hb=12342e01c014137b72546c1e3a54181063e69415;hp=6e4bb38b11dd436e4d289681abcf36f3a2687599;hpb=d3ceb2186dc79130508093b3d0c944771a53534f;p=libs%2Fgl.git diff --git a/source/glsl/parser.h b/source/glsl/parser.h index 6e4bb38b..cdb57ebc 100644 --- a/source/glsl/parser.h +++ b/source/glsl/parser.h @@ -16,7 +16,7 @@ class Parser { private: std::string source; - std::string source_name; + unsigned base_index; unsigned source_index; Tokenizer tokenizer; Preprocessor preprocessor; @@ -33,9 +33,11 @@ public: Module &parse(IO::Base &, const std::string &, unsigned = 0); private: - void parse_source(const std::string &); + void parse_source(const std::string &, unsigned); void set_required_version(const Version &); - void stage_change(StageType); + 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();