fix: should set category type to the return value.
fix: should fix the conditional statement for category type check.
change: new token types has been added.
fix: bug of analyze function.