diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 08:44:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:17 +0200 |
commit | d2bee691d8f05af0adbc78318c730560c1cb4d6e (patch) | |
tree | 2d634c37a37105fda7858b84960772ca9a95c8a5 /build2/test/script/parser | |
parent | 63fe26fa228fab1286f8632efe5e93ce6960bfcb (diff) |
Use variable lookup hook in testscript parser
Diffstat (limited to 'build2/test/script/parser')
-rw-r--r-- | build2/test/script/parser | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/build2/test/script/parser b/build2/test/script/parser index 55dc003..ea0cadb 100644 --- a/build2/test/script/parser +++ b/build2/test/script/parser @@ -39,7 +39,8 @@ namespace build2 // // Each parse function receives the token/type from which it should // start consuming. On return the token/type should contain the first - // token that has not been consumed. + // token that has not been consumed. For *_line() functions this is + // the newline. // protected: void @@ -60,6 +61,12 @@ namespace build2 string parse_here_document (token&, token_type&, const string&); + // Customization hooks. + // + protected: + virtual lookup + lookup_variable (name&&, string&&, const location&) override; + protected: using base_parser = build2::parser; |