

from __future__ import print_function


ADD_OP = '+'
MULTIPLY_OP = '*'

OPERATORS = [ADD_OP, MULTIPLY_OP]


def pprint_expr_trees(trees):
    from parser import ExprParser
    print('[')
    for t in trees:
        print(' ', ExprParser(t))
    print(']')



from __future__ import print_function


ADD_OP = '+'
MULTIPLY_OP = '*'

OPERATORS = [ADD_OP, MULTIPLY_OP]


def pprint_expr_trees(trees):
    print('[')
    for t in trees:
        print(' ', t)
    print(']')

Update pprint_expr_trees to adopt Expr
Update pprint_expr_trees to adopt Expr

  
  
  from __future__ import print_function
  
  
  ADD_OP = '+'
  MULTIPLY_OP = '*'
  
  OPERATORS = [ADD_OP, MULTIPLY_OP]
  
  
  def pprint_expr_trees(trees):
-     from parser import ExprParser
      print('[')
      for t in trees:
-         print(' ', ExprParser(t))
+         print(' ', t)
      print(']')
  
Update pprint_expr_trees to adopt Expr
## Code Before:


from __future__ import print_function


ADD_OP = '+'
MULTIPLY_OP = '*'

OPERATORS = [ADD_OP, MULTIPLY_OP]


def pprint_expr_trees(trees):
    from parser import ExprParser
    print('[')
    for t in trees:
        print(' ', ExprParser(t))
    print(']')

## Instruction:
Update pprint_expr_trees to adopt Expr
## Code After:


from __future__ import print_function


ADD_OP = '+'
MULTIPLY_OP = '*'

OPERATORS = [ADD_OP, MULTIPLY_OP]


def pprint_expr_trees(trees):
    print('[')
    for t in trees:
        print(' ', t)
    print(']')
