aboutsummaryrefslogtreecommitdiff
path: root/build/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-03 17:49:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-03 17:49:12 +0200
commit9c45022422bc9826da36631bfe1184658956daaf (patch)
treef98bf7ef4ea82d34c4f05d7f452b840cfc77b0fe /build/parser
parent6298f309bddaf3f279a724034e2d1d3ce58e0e1a (diff)
Implement new potential directive keyword test
Now we can use directive names as variables and targets type, for example: print = foo # variable print{foo}: # target
Diffstat (limited to 'build/parser')
-rw-r--r--build/parser5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/parser b/build/parser
index ca27890..f3f88d5 100644
--- a/build/parser
+++ b/build/parser
@@ -128,6 +128,11 @@ namespace build
void
skip_block (token&, token_type&);
+ // Return true if the name token can be considered a directive keyword.
+ //
+ bool
+ keyword (token&);
+
// Buildspec.
//
buildspec