39 #ifndef BISON_LOCATION_HH
40 # define BISON_LOCATION_HH
48 #line 1 "[Bison:b4_percent_define_default]"
53 #line 54 "location.hh"
84 inline void columns (
unsigned int count = 1)
90 inline void lines (
unsigned int count = 1)
138 return !(loc1 == loc2);
147 inline std::ostream& operator<< (std::ostream& ostr,
const location& loc)
156 ostr <<
'-' << last.
line <<
'.' << last.
column;
158 ostr <<
'-' << last.
column;
164 #line 1 "[Bison:b4_percent_define_default]"
169 #line 170 "location.hh"
Abstract a location.
Definition: location.hh:57
void columns(unsigned int count=1)
Extend the current location to the COUNT next columns.
Definition: location.hh:84
position begin
Beginning of the located region.
Definition: location.hh:99
void initialize(std::string *fn)
Initialization.
Definition: location.hh:68
void step()
Reset initial location to final location.
Definition: location.hh:78
position end
End of the located region.
Definition: location.hh:101
location()
Construct a location.
Definition: location.hh:61
void lines(unsigned int count=1)
Extend the current location to the COUNT next lines.
Definition: location.hh:90
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
unsigned int column
Current column number.
Definition: position.hh:99
Define the yy::position class.