t03.expect 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. file_input
  2. stmt
  3. simple_stmt
  4. small_stmt
  5. print_stmt
  6. T_NAME: 'print'
  7. test
  8. or_test
  9. and_test
  10. not_test
  11. comparison
  12. expr
  13. xor_expr
  14. and_expr
  15. shift_expr
  16. arith_expr
  17. term
  18. factor
  19. power
  20. atom
  21. T_STRING: '\'0"1\''
  22. T_NEWLINE: '\n'
  23. stmt
  24. simple_stmt
  25. small_stmt
  26. print_stmt
  27. T_NAME: 'print'
  28. test
  29. or_test
  30. and_test
  31. not_test
  32. comparison
  33. expr
  34. xor_expr
  35. and_expr
  36. shift_expr
  37. arith_expr
  38. term
  39. factor
  40. power
  41. atom
  42. T_STRING: "'2\\'3'"
  43. T_NEWLINE: '\n'
  44. stmt
  45. simple_stmt
  46. small_stmt
  47. print_stmt
  48. T_NAME: 'print'
  49. test
  50. or_test
  51. and_test
  52. not_test
  53. comparison
  54. expr
  55. xor_expr
  56. and_expr
  57. shift_expr
  58. arith_expr
  59. term
  60. factor
  61. power
  62. atom
  63. T_STRING: '"4\'5"'
  64. T_NEWLINE: '\n'
  65. stmt
  66. simple_stmt
  67. small_stmt
  68. print_stmt
  69. T_NAME: 'print'
  70. test
  71. or_test
  72. and_test
  73. not_test
  74. comparison
  75. expr
  76. xor_expr
  77. and_expr
  78. shift_expr
  79. arith_expr
  80. term
  81. factor
  82. power
  83. atom
  84. T_STRING: '"6\\"7"'
  85. T_NEWLINE: '\n'
  86. stmt
  87. simple_stmt
  88. small_stmt
  89. print_stmt
  90. T_NAME: 'print'
  91. test
  92. or_test
  93. and_test
  94. not_test
  95. comparison
  96. expr
  97. xor_expr
  98. and_expr
  99. shift_expr
  100. arith_expr
  101. term
  102. factor
  103. power
  104. atom
  105. T_STRING: '\'\'\'8\'9"0\'\'\''
  106. T_NEWLINE: '\n'
  107. T_ENDMARKER: ''