correct pseudos regexp. remove useless stuffs, correct syntax validation while tokenize