aboutsummaryrefslogtreecommitdiff
path: root/build/token.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-05 11:55:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-05 11:55:15 +0200
commit9fb791e9fad6c63fc1dac49f4d05ae63b8a3db9b (patch)
treed60322d4382ca5f97b676c5abe2e39524f35eab4 /build/token.cxx
parentf159b1dac68c8714f7ba71ca168e3b695891aad9 (diff)
Rename build directory/namespace to build2
Diffstat (limited to 'build/token.cxx')
-rw-r--r--build/token.cxx35
1 files changed, 0 insertions, 35 deletions
diff --git a/build/token.cxx b/build/token.cxx
deleted file mode 100644
index cf47fd4..0000000
--- a/build/token.cxx
+++ /dev/null
@@ -1,35 +0,0 @@
-// file : build/token.cxx -*- C++ -*-
-// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
-// license : MIT; see accompanying LICENSE file
-
-#include <build/token>
-
-#include <ostream>
-
-using namespace std;
-
-namespace build
-{
- ostream&
- operator<< (ostream& os, const token& t)
- {
- switch (t.type)
- {
- case token_type::eos: os << "<end-of-file>"; break;
- case token_type::newline: os << "<newline>"; break;
- case token_type::pair_separator: os << "<pair separator>"; break;
- case token_type::colon: os << ":"; break;
- case token_type::lcbrace: os << "{"; break;
- case token_type::rcbrace: os << "}"; break;
- case token_type::equal: os << "="; break;
- case token_type::equal_plus: os << "=+"; break;
- case token_type::plus_equal: os << "+="; break;
- case token_type::dollar: os << "$"; break;
- case token_type::lparen: os << "("; break;
- case token_type::rparen: os << ")"; break;
- case token_type::name: os << t.value; break;
- }
-
- return os;
- }
-}