39 #ifndef BISON_POSITION_HH
40 # define BISON_POSITION_HH
50 #line 1 "[Bison:b4_percent_define_default]"
55 #line 54 "position.hh"
80 inline void lines (
int count = 1)
111 inline const position
119 inline const position&
122 return res += -width;
126 inline const position
129 return begin + -width;
146 return !(pos1 == pos2);
154 operator<< (std::ostream& ostr,
const position& pos)
163 #line 1 "[Bison:b4_percent_define_default]"
168 #line 167 "position.hh"
Abstract a position.
Definition: position.hh:58
void initialize(std::string *fn)
Initialization.
Definition: position.hh:69
void lines(int count=1)
(line related) Advance to the COUNT next lines.
Definition: position.hh:80
std::string * filename
File name to which this position refers.
Definition: position.hh:95
unsigned int line
Current line number.
Definition: position.hh:97
void columns(int count=1)
(column related) Advance to the COUNT next columns.
Definition: position.hh:87
unsigned int column
Current column number.
Definition: position.hh:99
position()
Construct a position.
Definition: position.hh:62