diff options
Diffstat (limited to 'build2/parser')
-rw-r--r-- | build2/parser | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/build2/parser b/build2/parser index bb6bc17..a5d39d3 100644 --- a/build2/parser +++ b/build2/parser @@ -91,12 +91,13 @@ namespace build2 if_else (token&, token_type&); void - variable (token&, token_type&, const variable_type&, token_type kind); + parse_variable (token&, token_type&, const variable_type&, token_type); string variable_name (names_type&&, const location&); - // Note: calls attributes_push() that the caller must pop. + // Note: calls attributes_push() that the caller must pop. Also expects + // the mode to auto-expire. // value variable_value (token&, token_type&, lexer_mode = lexer_mode::value); @@ -233,6 +234,12 @@ namespace build2 buildspec buildspec_clause (token&, token_type&, token_type end); + // Customization hooks. + // + protected: + virtual lookup + lookup_variable (name&& qual, string&& name, const location&); + // Utilities. // protected: |