t02.expect 3.2 KB

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