Position in a source file or string. First is line, second is column. More...
#include <compiler.h>
Public Member Functions | |
SourcePos () | |
SourcePos (unsigned character, unsigned row, unsigned column) | |
SourcePos () | |
SourcePos (unsigned character, unsigned row, unsigned column) | |
std::string | toString () const |
std::string | toString () const |
Return the string version of this position. | |
Public Attributes | |
unsigned | character |
position in source text | |
unsigned | column |
column in source text | |
unsigned | row |
line in source text | |
bool | valid |
true if character, row and column hold valid values |
Position in a source file or string. First is line, second is column.
Definition at line 130 of file compiler.h.
Aseba::SourcePos::SourcePos | ( | unsigned | character, | |
unsigned | row, | |||
unsigned | column | |||
) | [inline] |
Definition at line 137 of file compiler.h.
Aseba::SourcePos::SourcePos | ( | ) | [inline] |
Definition at line 138 of file compiler.h.
Aseba::SourcePos::SourcePos | ( | unsigned | character, | |
unsigned | row, | |||
unsigned | column | |||
) | [inline] |
Definition at line 137 of file compiler.h.
Aseba::SourcePos::SourcePos | ( | ) | [inline] |
Definition at line 138 of file compiler.h.
std::string Aseba::SourcePos::toString | ( | ) | const |
unsigned Aseba::SourcePos::character |
position in source text
Definition at line 132 of file compiler.h.
unsigned Aseba::SourcePos::column |
column in source text
Definition at line 134 of file compiler.h.
unsigned Aseba::SourcePos::row |
line in source text
Definition at line 133 of file compiler.h.
true if character, row and column hold valid values
Definition at line 135 of file compiler.h.