40 #ifndef BISON_LOCATION_HH 41 # define BISON_LOCATION_HH 79 inline void columns (
unsigned int count = 1)
85 inline void lines (
unsigned int count = 1)
128 inline std::ostream& operator<< (std::ostream& ostr,
const location& loc)
137 ostr <<
'-' << last.
line <<
'.' << last.column;
139 ostr <<
'-' << last.column;
145 #endif // not BISON_LOCATION_HH
void columns(unsigned int count=1)
Extend the current location to the COUNT next columns.
void initialize(std::string *fn)
Initialization.
unsigned int column
Current column number.
void lines(int count=1)
(line related) Advance to the COUNT next lines.
void initialize(std::string *fn)
Initialization.
position begin
Beginning of the located region.
position end
End of the located region.
void lines(unsigned int count=1)
Extend the current location to the COUNT next lines.
void step()
Reset initial location to final location.
unsigned int line
Current line number.
location()
Construct a location.
std::string * filename
File name to which this position refers.