aboutsummaryrefslogtreecommitdiff
path: root/build2/lexer
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-19 15:01:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:30 +0200
commit56eb8c36b5b408e08760fa18cf893e5e8a613b7a (patch)
treef55960286ec185f6e3679cf9661b27c53a53c39f /build2/lexer
parent93f38c7b1e4bf3c7bf14af6785146c81614cbac5 (diff)
Implement pre-parsing mode for subset of buildfile parsing functions
Diffstat (limited to 'build2/lexer')
-rw-r--r--build2/lexer5
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/lexer b/build2/lexer
index abaf273..e9de617 100644
--- a/build2/lexer
+++ b/build2/lexer
@@ -137,8 +137,11 @@ namespace build2
token
next_quoted ();
+ // Lex a word assuming current is the top state (which may already have
+ // been "expired" from the top).
+ //
virtual token
- word (state, bool separated);
+ word (state current, bool separated);
// Return true if we have seen any spaces. Skipped empty lines
// don't count. In other words, we are only interested in spaces