AST now prints according to the assignment.