public Token2(TokenKind2 kind, string value, int line, int column) { this.kind = kind; this.value = value; this.line = line; this.column = column; }
protected Token2 CreateToken(TokenKind2 kind) { string tokenData = data.Substring(savePos, pos - savePos); return(new Token2(kind, tokenData, saveLine, saveCol)); }
protected Token2 CreateToken(TokenKind2 kind, string value) { return(new Token2(kind, value, line, column)); }