create token and astNode checkers

to fix #29