X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fparser.h;h=e087f27f9d0578bd6e23be8fee0c44e841cd3cb3;hp=c98867a3791e866ecd31a9c7cc5076e7443482cf;hb=f901fcf41d8ca544085f448227f84bc6f966660d;hpb=e484dab089e86e889f007ad362f72337542015a0 diff --git a/source/glsl/parser.h b/source/glsl/parser.h index c98867a3..e087f27f 100644 --- a/source/glsl/parser.h +++ b/source/glsl/parser.h @@ -12,9 +12,12 @@ namespace Msp { namespace GL { namespace SL { +class ModuleCache; + class Parser { private: + ModuleCache *mod_cache; std::string source; int base_index; int source_index; @@ -27,11 +30,10 @@ private: std::vector errors; public: - Parser(); - ~Parser(); + Parser(ModuleCache *); - Module &parse(const std::string &, const std::string &, int); - Module &parse(IO::Base &, const std::string &, int); + void parse(Module &, const std::string &, const std::string &, int); + void parse(Module &, IO::Base &, const std::string &, int); private: void parse_source(const std::string &, int);