From 56eb8c36b5b408e08760fa18cf893e5e8a613b7a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 19 Oct 2016 15:01:36 +0200 Subject: Implement pre-parsing mode for subset of buildfile parsing functions --- build2/lexer | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build2/lexer') 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 -- cgit v1.1