aboutsummaryrefslogtreecommitdiff
path: root/tests/build/lexer
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-12-12 11:30:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-12-12 11:30:04 +0200
commit257ad3c2c5e633d2fd3f2228021ac3ae8d6d07cb (patch)
treeecfa5df6e8abca5bd483d5498bf84412ae58930e /tests/build/lexer
parent0dcf07989b4b942f6ff872023b2886b7f698d711 (diff)
Initial buildfile parser implementation
g++-4.9 -std=c++14 -g -I../../.. -o driver driver.cxx ../../../build/lexer.cxx ../../../build/parser.cxx && ./driver
Diffstat (limited to 'tests/build/lexer')
-rw-r--r--tests/build/lexer/driver.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/build/lexer/driver.cxx b/tests/build/lexer/driver.cxx
index b1af9d9..e329b1c 100644
--- a/tests/build/lexer/driver.cxx
+++ b/tests/build/lexer/driver.cxx
@@ -71,6 +71,8 @@ main ()
tokens ({"foo", ":", "\n", "bar", ""}));
}
+ostream cnull (nullptr);
+
static tokens
lex (const char* s)
{
@@ -78,7 +80,7 @@ lex (const char* s)
istringstream is (s);
is.exceptions (istream::failbit | istream::badbit);
- lexer l (is, "");
+ lexer l (is, "", cnull);
try
{