X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fglsl%2Ftokenizer.h;h=46aa62fbea282c61ae016dd232f39b6fa73971f9;hb=7b73b63df12b3ace4231842aa291d6e1d7b3f948;hp=20ea756a9099ea192368f60750f791e0238624c3;hpb=30465dd3b9f55ec42c4b19c3c2077eede7237a26;p=libs%2Fgl.git diff --git a/source/glsl/tokenizer.h b/source/glsl/tokenizer.h index 20ea756a..46aa62fb 100644 --- a/source/glsl/tokenizer.h +++ b/source/glsl/tokenizer.h @@ -29,6 +29,7 @@ private: std::string::const_iterator iter; std::string::const_iterator source_end; Location location; + bool progress_mark; bool allow_preprocess; bool suppress_line_advance; std::string last_token; @@ -40,8 +41,11 @@ public: void begin(const std::string &, const std::string &); const std::string &peek_token(unsigned = 0); const std::string &parse_token(); + const std::string &get_last_token() const { return last_token; } void expect(const std::string &); void set_location(const Location &); + void clear_progress_mark() { progress_mark = false; } + bool get_progress_mark() const { return progress_mark; } const Location &get_location() const { return location; } private: std::string parse_token_();