Next: C++ location, Up: C++ Location Values [Contents][Index]
position
Create a position
denoting a given point. Note that file
is
not reclaimed when the position
is destroyed: memory managed must be
handled elsewhere.
Reset the position to the given values.
The name of the file. It will always be handled as a pointer, the parser will never duplicate nor deallocate it. As an experimental feature you may change it to ‘type*’ using ‘%define filename_type "type"’.
The line, starting at 1.
If height is not null, advance by height lines, resetting the column number. The resulting line number cannot be less than 1.
The column, starting at 1.
Advance by width columns, without changing the line number. The resulting column number cannot be less than 1.
Various forms of syntactic sugar for columns
.
Whether *this
and that
denote equal/different positions.
Report p on o like this: ‘file:line.column’, or ‘line.column’ if file is null.
Next: C++ location, Up: C++ Location Values [Contents][Index]