aboutsummaryrefslogtreecommitdiff
path: root/build/lexer
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-12-12 08:02:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-12-12 08:02:14 +0200
commit0dcf07989b4b942f6ff872023b2886b7f698d711 (patch)
treeb169cd924cadf6767adbd2feae912acc4b80e797 /build/lexer
parente6d92a1fb21232ab09886431d39ccb8a95c7c68d (diff)
Add test for lexer
g++-4.9 -std=c++14 -g -I../../.. -o driver driver.cxx ../../../build/lexer.cxx && ./driver
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 987efab..34b6fcc 100644
--- a/build/lexer
+++ b/build/lexer
@@ -21,6 +21,9 @@ namespace build
class lexer
{
public:
+ // If name is empty, then no diagnostics is issued, just lexer_error
+ // is thrown (use for testing).
+ //
lexer (std::istream& is, const std::string& name)
: is_ (is), name_ (name) {}