Maintain backwards compatibility with python < 2.3 by dynamically
[python/dscho.git] / Lib / test / output / test_grammar
blob00fab49a6dcf3c16c047f4bbc72ed663ada26ca5
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 lambdef
17 simple_stmt
18 expr_stmt
19 print_stmt
20 1 2 3
21 1 2 3
22 1 1 1
23 extended print_stmt
24 1 2 3
25 1 2 3
26 1 1 1
27 hello world
28 del_stmt
29 pass_stmt
30 flow_stmt
31 break_stmt
32 continue_stmt
33 continue + try/except ok
34 continue + try/finally ok
35 testing continue and break in try/except in loop
36 return_stmt
37 raise_stmt
38 import_stmt
39 global_stmt
40 exec_stmt
41 assert_stmt
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
56 atoms
57 classdef
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')]
63 [[1], [1, 1], [1, 2, 4], [1, 3, 9, 27], [1, 4, 16, 64, 256]]
64 [False, False, False]
65 [[1, 2], [3, 4], [5, 6]]
66 [('Boeing', 'Airliner'), ('Boeing', 'Engine'), ('Ford', 'Engine'), ('Macdonalds', 'Cheeseburger')]