diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-30 14:16:54 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-30 14:16:54 +0200 |
commit | b1715878d50aa8a3c3e2404f3ded120329994aba (patch) | |
tree | 85c9feb4556f7555f0acc0e2d012ee52b73c1b34 /build/parser | |
parent | 70256514a09e4692c6839f5c2b21b7ec9c1055bd (diff) |
Initial support for command line variables
Diffstat (limited to 'build/parser')
-rw-r--r-- | build/parser | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build/parser b/build/parser index 94a5bdf..4423e25 100644 --- a/build/parser +++ b/build/parser @@ -33,6 +33,9 @@ namespace build buildspec parse_buildspec (std::istream&, const std::string& name); + token + parse_variable (lexer&, scope&, std::string name, token_type kind); + // Recursive descent parser. // private: @@ -53,6 +56,9 @@ namespace build void using_ (token&, token_type&); + void + variable (token&, token_type&, std::string name, token_type kind); + names_type names (token& t, token_type& tt) { |