Trying to make a parse tree using visitors