Create token object only if the parsing works