40 #ifndef BISON_POSITION_HH 41 # define BISON_POSITION_HH 72 inline void lines (
int count = 1)
83 if (leftmost <= current + count)
119 return res += -width;
126 return begin + -width;
134 operator<< (std::ostream& ostr,
const position& pos)
142 #endif // not BISON_POSITION_HH unsigned int line
Current line number.
unsigned int column
Current column number.
void initialize(std::string *fn)
Initialization.
std::string * filename
File name to which this position refers.
void columns(int count=1)
(column related) Advance to the COUNT next columns.
void lines(int count=1)
(line related) Advance to the COUNT next lines.
position()
Construct a position.