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 |
Jeremy Hylton | 619eea6 | 2001-01-25 20:12:27 +0000 | [diff] [blame] | 16 | lambdef |
Barry Warsaw | dde5c70 | 1996-12-10 23:20:09 +0000 | [diff] [blame] | 17 | simple_stmt |
| 18 | expr_stmt |
| 19 | print_stmt |
| 20 | 1 2 3 |
| 21 | 1 2 3 |
| 22 | 1 1 1 |
Barry Warsaw | efc92ee | 2000-08-21 15:46:50 +0000 | [diff] [blame] | 23 | extended print_stmt |
| 24 | 1 2 3 |
| 25 | 1 2 3 |
| 26 | 1 1 1 |
Barry Warsaw | 9182b45 | 2000-08-29 04:57:10 +0000 | [diff] [blame] | 27 | hello world |
Barry Warsaw | dde5c70 | 1996-12-10 23:20:09 +0000 | [diff] [blame] | 28 | del_stmt |
| 29 | pass_stmt |
| 30 | flow_stmt |
| 31 | break_stmt |
| 32 | continue_stmt |
Jeremy Hylton | 3faa52e | 2001-02-01 22:48:12 +0000 | [diff] [blame] | 33 | continue + try/except ok |
| 34 | continue + try/finally ok |
Thomas Wouters | 80d373c | 2001-09-26 12:43:39 +0000 | [diff] [blame] | 35 | testing continue and break in try/except in loop |
Barry Warsaw | dde5c70 | 1996-12-10 23:20:09 +0000 | [diff] [blame] | 36 | return_stmt |
| 37 | raise_stmt |
| 38 | import_stmt |
| 39 | global_stmt |
| 40 | exec_stmt |
Jeremy Hylton | f828e2d | 2001-02-19 15:54:52 +0000 | [diff] [blame] | 41 | assert_stmt |
Barry Warsaw | dde5c70 | 1996-12-10 23:20:09 +0000 | [diff] [blame] | 42 | if_stmt |
| 43 | while_stmt |
| 44 | for_stmt |
| 45 | try_stmt |
| 46 | suite |
| 47 | test |
| 48 | comparison |
| 49 | binary mask ops |
| 50 | shift ops |
| 51 | additive ops |
| 52 | multiplicative ops |
| 53 | unary ops |
| 54 | selectors |
Jeremy Hylton | aed0d8d | 2000-03-28 23:51:17 +0000 | [diff] [blame] | 55 | |
Barry Warsaw | dde5c70 | 1996-12-10 23:20:09 +0000 | [diff] [blame] | 56 | atoms |
| 57 | classdef |
Skip Montanaro | 803d6e5 | 2000-08-12 18:09:51 +0000 | [diff] [blame] | 58 | ['Apple', 'Banana', 'Coco nut'] |
| 59 | [3, 6, 9, 12, 15] |
| 60 | [3, 4, 5] |
| 61 | [(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')] |
| 62 | [(1, 'Banana'), (1, 'Coconut'), (2, 'Banana'), (2, 'Coconut'), (3, 'Banana'), (3, 'Coconut'), (4, 'Banana'), (4, 'Coconut'), (5, 'Banana'), (5, 'Coconut')] |
Jeremy Hylton | 578ceee | 2001-01-23 01:51:40 +0000 | [diff] [blame] | 63 | [0, 0, 0] |
Jeremy Hylton | e241e29 | 2001-03-19 20:42:11 +0000 | [diff] [blame] | 64 | [[1, 2], [3, 4], [5, 6]] |
Skip Montanaro | 803d6e5 | 2000-08-12 18:09:51 +0000 | [diff] [blame] | 65 | [('Boeing', 'Airliner'), ('Boeing', 'Engine'), ('Ford', 'Engine'), ('Macdonalds', 'Cheeseburger')] |