public Token(TokenType type, string value, int index, int line, int column) { this.type = type; this.value = value; this.position = new TokenPosition(index, line, column); }
public Token(TokenType type, string value, TokenPosition position) { this.type = type; this.value = value; this.position = position; }