From 172e429ef0ca254a6711d66dbeb52eae09a6dfa9 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 30 Nov 2014 06:38:18 +0000 Subject: Misc cleanup. --- src/syntax/token.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/syntax') diff --git a/src/syntax/token.cc b/src/syntax/token.cc index fe3cd7a7..d66a849e 100644 --- a/src/syntax/token.cc +++ b/src/syntax/token.cc @@ -35,6 +35,10 @@ #include namespace OpenAxiom { + std::ostream& operator<<(std::ostream& os, const Locus& l) { + return os << '{' << l.line << ", " << l.column << '}'; + } + std::ostream& operator<<(std::ostream& os, TokenCategory tc) { switch (tc) { -- cgit v1.2.3