returns error code if it's invalid token (can be returned in error tolerant mode of tokenizer)
See Implementation
returns error code if it's invalid token (can be returned in error tolerant mode of tokenizer)