diff options
Diffstat (limited to 'build2/test/script/parser')
-rw-r--r-- | build2/test/script/parser | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/build2/test/script/parser b/build2/test/script/parser index f9fbd98..adff8a3 100644 --- a/build2/test/script/parser +++ b/build2/test/script/parser @@ -40,7 +40,7 @@ namespace build2 // protected: void - parse_script (token&, token_type&); + parse_script (); void parse_script_line (token&, token_type&); @@ -63,6 +63,18 @@ namespace build2 virtual lookup lookup_variable (name&&, string&&, const location&) override; + // Number of quoted tokens since last reset. Note that this includes + // the peeked token, if any. + // + protected: + size_t + quoted () const; + + void + reset_quoted (token& current); + + size_t replay_quoted_; + protected: using base_parser = build2::parser; |