aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/parser.hxx')
-rw-r--r--build2/parser.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/build2/parser.hxx b/build2/parser.hxx
index 3c51801..1b39491 100644
--- a/build2/parser.hxx
+++ b/build2/parser.hxx
@@ -94,6 +94,9 @@ namespace build2
parse_include (token&, token_type&);
void
+ parse_run (token&, token_type&);
+
+ void
parse_import (token&, token_type&);
void
@@ -197,6 +200,16 @@ namespace build2
attributes&
attributes_top () {return attributes_.top ();}
+ // Source a stream optionnaly entering it as a buildfile and performing
+ // the default target processing.
+ //
+ void
+ source (istream&,
+ const path&,
+ const location&,
+ bool enter,
+ bool default_target);
+
// If chunk is true, then parse the smallest but complete, name-wise,
// chunk of input. Note that in this case you may still end up with
// multiple names, for example, {foo bar} or $foo. In the pre-parse mode