sapphirec
The Sapphire documentation
Location Struct Reference

#include <Location.h>

Public Member Functions

 Location (int ln, int col, std::string file)
 
 ~Location ()
 
std::string str () const
 
std::string paren_str () const
 
void advance ()
 
void pos_from_char (const char &character)
 
void operator= (const Location &other)
 
void copy (const Location &other)
 

Public Attributes

int line
 
int column
 
std::string fname
 
std::shared_ptr< Locationparent = nullptr
 

Constructor & Destructor Documentation

◆ Location()

Location::Location ( int  ln,
int  col,
std::string  file 
)

◆ ~Location()

Location::~Location ( )

Member Function Documentation

◆ advance()

void Location::advance ( )

◆ copy()

void Location::copy ( const Location other)

◆ operator=()

void Location::operator= ( const Location other)

◆ paren_str()

std::string Location::paren_str ( ) const

◆ pos_from_char()

void Location::pos_from_char ( const char &  character)

◆ str()

std::string Location::str ( ) const

Member Data Documentation

◆ column

int Location::column

◆ fname

std::string Location::fname

◆ line

int Location::line

◆ parent

std::shared_ptr<Location> Location::parent = nullptr

The documentation for this struct was generated from the following files: