diff options
Diffstat (limited to 'src/location.cc')
| -rw-r--r-- | src/location.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/location.cc b/src/location.cc new file mode 100644 index 0000000..3fa1075 --- /dev/null +++ b/src/location.cc @@ -0,0 +1,12 @@ +#include "location.hh" + +#include <ostream> + +namespace src { + +std::ostream& operator<<(std::ostream& out, Location const& loc) { + out << loc.line << ':' << loc.column; + return out; +} + +} // namespace src |
