add type tag for queue
rename queue functions
fix memory leak in tokenize() and parse()
fix memory leak in eval