From anonymous, 1 Month ago, written in Python.
Embed
  1. >>> print(ast.dump(ast.parse("-x**2"), indent=4))
  2. Module(
  3.     body=[
  4.         Expr(
  5.             value=UnaryOp(
  6.                 op=USub(),
  7.                 operand=BinOp(
  8.                     left=Name(id='x', ctx=Load()),
  9.                     op=Pow(),
  10.                     right=Constant(value=2))))],
  11.     type_ignores=[])