40#ifndef BISON_POSITION_H
41# define BISON_POSITION_H
72 inline void lines (
int count = 1)
83 if (leftmost <= current + count)
108 inline const position
116 inline const position&
119 return res += -width;
123 inline const position
126 return begin + -width;
134 operator<< (std::ostream& ostr,
const position& pos)
unsigned int column
Current column number.
std::string * filename
File name to which this position refers.
unsigned int line
Current line number.
position()
Construct a position.
void initialize(std::string *fn)
Initialization.
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.