parameters: (exp)
docstring: Display an expression in canonicalized infix form.
docstring_summary: Display an expression in canonicalized infix form.
docstring_tokens: Display an expression in canonicalized infix form .
function: def display_expression(exp):
      "Display an expression in canonicalized infix form."
      if type(exp) is type(()):
          if exp[0] == "not":
              return "not " + display_expression(exp[1])
          elif exp[0] == '?':
              return "(%s ? %s : %s)" % (display_expression(exp[1]), display_expression(exp[2]), display_expression(exp[3]))
          else:
              return "(%s %s %s)" % (display_expression(exp[1]), exp[0], display_expression(exp[2]))
      elif isinstance(exp, ConfigSymbol):
          return exp.name
      else:
          return `exp`
function_tokens: def display_expression ( exp ) : if type ( exp ) is type ( ( ) ) : if exp [ 0 ] == "not" : return "not " + display_expression ( exp [ 1 ] ) elif exp [ 0 ] == '?' : return "(%s ? %s : %s)" % ( display_expression ( exp [ 1 ] ) , display_expression ( exp [ 2 ] ) , display_expression ( exp [ 3 ] ) ) else : return "(%s %s %s)" % ( display_expression ( exp [ 1 ] ) , exp [ 0 ] , display_expression ( exp [ 2 ] ) ) elif isinstance ( exp , ConfigSymbol ) : return exp . name else : return `exp`