Position

This struct represents the line and column number of a token, starting at 1.

Members

Functions

advance
void advance(char ch)

Determines line and column number based on char that is read

toString
string toString()

Returns a string representing the line and column number

Variables

column
int column;

Line and column number.

line
int line;

Line and column number.

Meta