aboutsummaryrefslogtreecommitdiff
path: root/build/lexer
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-02 14:48:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-02 14:48:21 +0200
commit65664ba5a6241e9c58d846cde6ed9fcbbe53d2cd (patch)
treea76f83398335b58e5043d4efe3f2e5748a3a1f56 /build/lexer
parent4a9ee48613cf5c59e071400280b62358eb79987e (diff)
Implement variable expansion
Diffstat (limited to 'build/lexer')
-rw-r--r--build/lexer6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/lexer b/build/lexer
index 67a94c8..d6817f2 100644
--- a/build/lexer
+++ b/build/lexer
@@ -111,9 +111,11 @@ namespace build
// Context-dependent lexing mode. In the value mode we don't treat
// certain characters (e.g., +, =) as special so that we can use
- // them in the variable values, e.g., 'foo = g++'.
+ // them in the variable values, e.g., 'foo = g++'. In contrast,
+ // in the variable mode, we restrict certain character (e.g., /)
+ // from appearing in the name.
//
- enum class mode {normal, value};
+ enum class mode {normal, value, variable};
mode mode_ {mode::normal};
};
}