Barry Warsaw | dde5c70 | 1996-12-10 23:20:09 +0000 | [diff] [blame] | 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 | del_stmt |
| 23 | pass_stmt |
| 24 | flow_stmt |
| 25 | break_stmt |
| 26 | continue_stmt |
| 27 | return_stmt |
| 28 | raise_stmt |
| 29 | import_stmt |
| 30 | global_stmt |
| 31 | exec_stmt |
| 32 | if_stmt |
| 33 | while_stmt |
| 34 | for_stmt |
| 35 | try_stmt |
| 36 | suite |
| 37 | test |
| 38 | comparison |
| 39 | binary mask ops |
| 40 | shift ops |
| 41 | additive ops |
| 42 | multiplicative ops |
| 43 | unary ops |
| 44 | selectors |
Jeremy Hylton | aed0d8d | 2000-03-28 23:51:17 +0000 | [diff] [blame] | 45 | |
Barry Warsaw | dde5c70 | 1996-12-10 23:20:09 +0000 | [diff] [blame] | 46 | atoms |
| 47 | classdef |
Skip Montanaro | 803d6e5 | 2000-08-12 18:09:51 +0000 | [diff] [blame^] | 48 | ['Apple', 'Banana', 'Coco nut'] |
| 49 | [3, 6, 9, 12, 15] |
| 50 | [3, 4, 5] |
| 51 | [(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')] |
| 52 | [(1, 'Banana'), (1, 'Coconut'), (2, 'Banana'), (2, 'Coconut'), (3, 'Banana'), (3, 'Coconut'), (4, 'Banana'), (4, 'Coconut'), (5, 'Banana'), (5, 'Coconut')] |
| 53 | good: got a SyntaxError as expected |
| 54 | [('Boeing', 'Airliner'), ('Boeing', 'Engine'), ('Ford', 'Engine'), ('Macdonalds', 'Cheeseburger')] |