39 #ifndef BISON_POSITION_HH
40 # define BISON_POSITION_HH
49 namespace torc {
namespace generic {
52 #line 53 "position.hh"
77 inline void lines (
int count = 1)
119 return res += -width;
126 return begin + -width;
143 return !(pos1 == pos2);
164 #line 165 "position.hh"
165 #endif // not BISON_POSITION_HH
std::string * filename
File name to which this position refers.
void lines(int count=1)
(line related) Advance to the COUNT next lines.
unsigned int column
Current column number.
unsigned int line
Current line number.
location & operator+=(location &res, unsigned int width)
Add and assign a location.
const location operator+(const location &begin, const location &end)
Join two location objects to create a location.
void initialize(std::string *fn)
Initialization.
bool operator!=(const location &loc1, const location &loc2)
Compare two location objects.
std::ostream & operator<<(std::ostream &ostr, const location &loc)
Intercept output stream redirection.
std::string * filename
File name to which this position refers.
bool operator==(const location &loc1, const location &loc2)
Compare two location objects.
const position operator-(const position &begin, const int width)
Add two position objects.
position()
Construct a position.
unsigned int column
Current column number.
const position & operator-=(position &res, const int width)
Add and assign a position.
void columns(int count=1)
(column related) Advance to the COUNT next columns.
unsigned int line
Current line number.
void columns(int count=1)
(column related) Advance to the COUNT next columns.