t334.trans 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Module(body=[Print(dest=None,
  2. values=[Str(s='One')],
  3. nl=True),
  4. If(test=Compare(left=Num(n=1),
  5. ops=[Gt()],
  6. comparators=[Num(n=10)]),
  7. body=[Expr(value=Name(id='exit',
  8. ctx=Load()))],
  9. orelse=[]),
  10. Print(dest=None,
  11. values=[Str(s='Two')],
  12. nl=True),
  13. If(test=Compare(left=Num(n=1),
  14. ops=[Gt()],
  15. comparators=[Num(n=10)]),
  16. body=[Expr(value=Name(id='quit',
  17. ctx=Load()))],
  18. orelse=[]),
  19. Print(dest=None,
  20. values=[Str(s='Three')],
  21. nl=True),
  22. If(test=Compare(left=Num(n=1),
  23. ops=[Gt()],
  24. comparators=[Num(n=10)]),
  25. body=[Expr(value=Call(func=Name(id='exit',
  26. ctx=Load()),
  27. args=[Num(n=-1)],
  28. keywords=[],
  29. starargs=None,
  30. kwargs=None))],
  31. orelse=[]),
  32. Print(dest=None,
  33. values=[Str(s='Four')],
  34. nl=True),
  35. If(test=Compare(left=Num(n=1),
  36. ops=[Gt()],
  37. comparators=[Num(n=10)]),
  38. body=[Expr(value=Call(func=Name(id='quit',
  39. ctx=Load()),
  40. args=[Num(n=42)],
  41. keywords=[],
  42. starargs=None,
  43. kwargs=None))],
  44. orelse=[]),
  45. Print(dest=None,
  46. values=[Str(s='Five')],
  47. nl=True),
  48. If(test=Compare(left=Num(n=1),
  49. ops=[Lt()],
  50. comparators=[Num(n=10)]),
  51. body=[Expr(value=Call(func=Name(id='quit',
  52. ctx=Load()),
  53. args=[],
  54. keywords=[],
  55. starargs=None,
  56. kwargs=None))],
  57. orelse=[]),
  58. Print(dest=None,
  59. values=[Str(s='This should never appear')],
  60. nl=True)])