38 #ifndef YY_YY_POSITION_HH_INCLUDED
39 # define YY_YY_POSITION_HH_INCLUDED
46 # if defined __cplusplus && 201103L <= __cplusplus
47 # define YY_NULL nullptr
56 #line 57 "position.hh"
116 inline const position
127 return res += -width;
131 inline const position
134 return begin + -width;
152 return !(pos1 == pos2);
159 template <
typename YYChar>
160 inline std::basic_ostream<YYChar>&
161 operator<< (std::basic_ostream<YYChar>& ostr,
const position& pos)
165 return ostr << pos.line <<
'.' << pos.column;
171 #line 172 "position.hh"
void lines(int count=1)
(line related) Advance to the COUNT next lines.
position(std::string *f=YY_NULL, unsigned int l=1u, unsigned int c=1u)
Construct a position.
std::string * filename
File name to which this position refers.
unsigned int line
Current line number.
void columns(int count=1)
(column related) Advance to the COUNT next columns.
unsigned int column
Current column number.
void initialize(std::string *fn=YY_NULL, unsigned int l=1u, unsigned int c=1u)
Initialization.