aboutsummaryrefslogtreecommitdiff
path: root/build/parser
diff options
context:
space:
mode:
Diffstat (limited to 'build/parser')
-rw-r--r--build/parser13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/parser b/build/parser
index 4390c67..ca27890 100644
--- a/build/parser
+++ b/build/parser
@@ -75,6 +75,9 @@ namespace build
define (token&, token_type&);
void
+ if_else (token&, token_type&);
+
+ void
variable (token&, token_type&, std::string name, token_type kind);
std::string
@@ -115,6 +118,16 @@ namespace build
const dir_path* dir,
const std::string* type);
+ // Skip until newline or eos.
+ //
+ void
+ skip_line (token&, token_type&);
+
+ // Skip until block-closing } or eos, taking into account nested blocks.
+ //
+ void
+ skip_block (token&, token_type&);
+
// Buildspec.
//
buildspec