Position in a source file or string. First is line, second is column. More...
#include <compiler.h>
Public Member Functions | |
SourcePos (unsigned character, unsigned row, unsigned column) | |
SourcePos () | |
std::wstring | toWString () 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 149 of file compiler.h.
Aseba::SourcePos::SourcePos | ( | unsigned | character, |
unsigned | row, | ||
unsigned | column | ||
) | [inline] |
Definition at line 156 of file compiler.h.
Aseba::SourcePos::SourcePos | ( | ) | [inline] |
Definition at line 157 of file compiler.h.
unsigned Aseba::SourcePos::character |
position in source text
Definition at line 151 of file compiler.h.
unsigned Aseba::SourcePos::column |
column in source text
Definition at line 153 of file compiler.h.
unsigned Aseba::SourcePos::row |
line in source text
Definition at line 152 of file compiler.h.
true if character, row and column hold valid values
Definition at line 154 of file compiler.h.