Add a functions to print ast and environments