sammine-lang
|
#include <Utilities.h>
Public Member Functions | |
Location (int64_t source_start, int64_t source_end) | |
void | advance () |
void | devance () |
void | newLine () |
Location | operator| (const Location &other) const |
void | operator|= (const Location &other) |
operator std::pair< int64_t, int64_t > () const | |
bool | operator== (const Location &other) const |
Static Public Member Functions | |
static Location | NonPrintable () |
Public Attributes | |
int64_t | source_start |
int64_t | source_end |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Location &loc) |
A class representing a location for sammine-lang, this is helpful in debugging The default constructor gives 0,0. When we don't want the Reporter to print out anything, construct it with NonPrintableLocation