t180.trans 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Module(body=[FunctionDef(name='f',
  2. args=arguments(args=[Name(id='n',
  3. ctx=Param())],
  4. vararg=None,
  5. kwarg=None,
  6. defaults=[]),
  7. body=[Assign(targets=[Name(id='i',
  8. ctx=Store())],
  9. value=Num(n=0)),
  10. While(test=Compare(left=Name(id='i',
  11. ctx=Load()),
  12. ops=[Lt()],
  13. comparators=[Name(id='n',
  14. ctx=Load())]),
  15. body=[Expr(value=Yield(value=Name(id='i',
  16. ctx=Load()))),
  17. Assign(targets=[Name(id='i',
  18. ctx=Store())],
  19. value=Num(n=100)),
  20. Expr(value=Yield(value=Name(id='i',
  21. ctx=Load()))),
  22. AugAssign(target=Name(id='i',
  23. ctx=Store()),
  24. op=Add(),
  25. value=Num(n=1))],
  26. orelse=[])],
  27. decorator_list=[]),
  28. For(target=Name(id='i',
  29. ctx=Store()),
  30. iter=Call(func=Name(id='f',
  31. ctx=Load()),
  32. args=[Num(n=50)],
  33. keywords=[],
  34. starargs=None,
  35. kwargs=None),
  36. body=[Print(dest=None,
  37. values=[Name(id='i',
  38. ctx=Load())],
  39. nl=True)],
  40. orelse=[])])