rewrite token, parser