sammine-lang
Loading...
Searching...
No Matches
sammine_util::Location Class Reference

#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)
std::pair< int64_t, int64_t > as_pair () const
bool operator== (const Location &other) const

Static Public Member Functions

static Location NonPrintable ()

Public Attributes

int64_t source_start
int64_t source_end
std::shared_ptr< SourceInfosource_info

Friends

std::ostream & operator<< (std::ostream &out, const Location &loc)

Detailed Description

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


The documentation for this class was generated from the following file: