Remove TMP_TOKEN and simplify token recgonization process