diff options
Diffstat (limited to 'src/syntax')
-rw-r--r-- | src/syntax/token.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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 <iostream> 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) { |