aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/parser
diff options
context:
space:
mode:
Diffstat (limited to 'build2/test/script/parser')
-rw-r--r--build2/test/script/parser16
1 files changed, 15 insertions, 1 deletions
diff --git a/build2/test/script/parser b/build2/test/script/parser
index 6531aba..1292738 100644
--- a/build2/test/script/parser
+++ b/build2/test/script/parser
@@ -32,7 +32,10 @@ namespace build2
pre_parse (istream&, const path& name, script&);
void
- parse (const path& name, script&, runner&);
+ parse (const path& name, script& s, runner& r)
+ {
+ parse (s, name, s, r);
+ }
// Recursive descent parser.
//
@@ -43,6 +46,9 @@ namespace build2
//
protected:
void
+ parse (scope&, const path& name, script&, runner&);
+
+ void
pre_parse_script ();
void
@@ -90,6 +96,14 @@ namespace build2
lexer* lexer_;
script* script_;
runner* runner_;
+
+ // Pre-parse state.
+ //
+ group* group_;
+ test* test_;
+
+ // Parse state.
+ //
scope* scope_;
};
}