makes a tree with precedence. fixed shift/reduce errors, prints pointer locations instead of proper nodes.