aboutsummaryrefslogtreecommitdiff
path: root/build/lexer
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-30 14:16:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-30 14:16:54 +0200
commitb1715878d50aa8a3c3e2404f3ded120329994aba (patch)
tree85c9feb4556f7555f0acc0e2d012ee52b73c1b34 /build/lexer
parent70256514a09e4692c6839f5c2b21b7ec9c1055bd (diff)
Initial support for command line variables
Diffstat (limited to 'build/lexer')
-rw-r--r--build/lexer3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/lexer b/build/lexer
index 5f91dc4..81225e0 100644
--- a/build/lexer
+++ b/build/lexer
@@ -30,6 +30,9 @@ namespace build
public:
lexer (std::istream& is, const std::string& name): is_ (is), fail (name) {}
+ const std::string&
+ name () const {return fail.name_;}
+
// Note: sets mode for the next token. If mode is pairs, then
// the second argument specifies the separator character.
//