home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Software / TemaCD / webclean / !!!python!!! / BeOpen-Python-2.0.exe / TEST_GRAMMAR < prev    next >
Encoding:
Text File  |  2000-08-29  |  1.2 KB  |  61 lines

  1. test_grammar
  2. 1. Parser
  3. 1.1 Tokens
  4. 1.1.1 Backslashes
  5. 1.1.2 Numeric literals
  6. 1.1.2.1 Plain integers
  7. 1.1.2.2 Long integers
  8. 1.1.2.3 Floating point
  9. 1.1.3 String literals
  10. 1.2 Grammar
  11. single_input
  12. file_input
  13. expr_input
  14. eval_input
  15. funcdef
  16. simple_stmt
  17. expr_stmt
  18. print_stmt
  19. 1 2 3
  20. 1 2 3
  21. 1 1 1
  22. extended print_stmt
  23. 1 2 3
  24. 1 2 3
  25. 1 1 1
  26. hello world
  27. del_stmt
  28. pass_stmt
  29. flow_stmt
  30. break_stmt
  31. continue_stmt
  32. return_stmt
  33. raise_stmt
  34. import_stmt
  35. global_stmt
  36. exec_stmt
  37. if_stmt
  38. while_stmt
  39. for_stmt
  40. try_stmt
  41. suite
  42. test
  43. comparison
  44. binary mask ops
  45. shift ops
  46. additive ops
  47. multiplicative ops
  48. unary ops
  49. selectors
  50.  
  51. atoms
  52. classdef
  53. ['Apple', 'Banana', 'Coco  nut']
  54. [3, 6, 9, 12, 15]
  55. [3, 4, 5]
  56. [(1, 'Apple'), (1, 'Banana'), (1, 'Coconut'), (2, 'Apple'), (2, 'Banana'), (2, 'Coconut'), (3, 'Apple'), (3, 'Banana'), (3, 'Coconut'), (4, 'Apple'), (4, 'Banana'), (4, 'Coconut'), (5, 'Apple'), (5, 'Banana'), (5, 'Coconut')]
  57. [(1, 'Banana'), (1, 'Coconut'), (2, 'Banana'), (2, 'Coconut'), (3, 'Banana'), (3, 'Coconut'), (4, 'Banana'), (4, 'Coconut'), (5, 'Banana'), (5, 'Coconut')]
  58. good: got a SyntaxError as expected
  59. good: got a SyntaxError as expected
  60. [('Boeing', 'Airliner'), ('Boeing', 'Engine'), ('Ford', 'Engine'), ('Macdonalds', 'Cheeseburger')]
  61.