spot
1.1.2
|
Abstract a position. More...
#include <ltlparse/position.hh>
Public Member Functions | |
position () | |
Construct a position. More... | |
void | initialize (std::string *fn) |
Initialization. More... | |
Line and Column related manipulators | |
void | lines (int count=1) |
(line related) Advance to the COUNT next lines. More... | |
void | columns (int count=1) |
(column related) Advance to the COUNT next columns. More... | |
Public Attributes | |
std::string * | filename |
File name to which this position refers. More... | |
unsigned int | line |
Current line number. More... | |
unsigned int | column |
Current column number. More... | |
Abstract a position.
|
inline |
Construct a position.
|
inline |
(column related) Advance to the COUNT next columns.
References column.
|
inline |
|
inline |
(line related) Advance to the COUNT next lines.
Referenced by ltlyy::location::lines().
unsigned int ltlyy::position::column |
Current column number.
Referenced by columns(), initialize(), lines(), and ltlyy::operator<<().
std::string* ltlyy::position::filename |
File name to which this position refers.
Referenced by initialize(), and ltlyy::operator<<().
unsigned int ltlyy::position::line |
Current line number.
Referenced by initialize(), lines(), and ltlyy::operator<<().