diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-03-30 07:59:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-03-30 07:59:19 +0200 |
commit | 31bd69c56bc29ec1c154a7c0623b6f0ccce78af1 (patch) | |
tree | 891b92806d386c723df5c2139706d6df356fcf18 /build2/parser | |
parent | f7bba792a10864f0a64a2a579306e3b20602c1dc (diff) |
Minor parser interface rework
Diffstat (limited to 'build2/parser')
-rw-r--r-- | build2/parser | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build2/parser b/build2/parser index 201e8ed..f3413a3 100644 --- a/build2/parser +++ b/build2/parser @@ -11,13 +11,13 @@ #include <build2/spec> #include <build2/lexer> #include <build2/token> -#include <build2/variable> // list_value #include <build2/diagnostics> namespace build2 { class scope; class target; + struct variable; class parser { @@ -39,7 +39,7 @@ namespace build2 parse_buildspec (istream&, const path& name); token - parse_variable (lexer&, scope&, string var_name, token_type kind); + parse_variable (lexer&, scope&, const variable_type&, token_type kind); names_type parse_export_stub (istream& is, const path& p, scope& r, scope& b) @@ -79,7 +79,7 @@ namespace build2 if_else (token&, token_type&); void - variable (token&, token_type&, string name, token_type kind); + variable (token&, token_type&, const variable_type&, token_type kind); string variable_name (names_type&&, const location&); |