Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / lib / python2.4 / test / output / test_grammar
CommitLineData
920dae64
AT
1test_grammar
21. Parser
31.1 Tokens
41.1.1 Backslashes
51.1.2 Numeric literals
61.1.2.1 Plain integers
71.1.2.2 Long integers
81.1.2.3 Floating point
91.1.3 String literals
101.2 Grammar
11single_input
12file_input
13expr_input
14eval_input
15funcdef
16lambdef
17simple_stmt
18expr_stmt
19print_stmt
201 2 3
211 2 3
221 1 1
23extended print_stmt
241 2 3
251 2 3
261 1 1
27hello world
28del_stmt
29pass_stmt
30flow_stmt
31break_stmt
32continue_stmt
33continue + try/except ok
34continue + try/finally ok
35testing continue and break in try/except in loop
36return_stmt
37raise_stmt
38import_name
39import_from
40global_stmt
41exec_stmt
42assert_stmt
43if_stmt
44while_stmt
45for_stmt
46try_stmt
47suite
48test
49comparison
50binary mask ops
51shift ops
52additive ops
53multiplicative ops
54unary ops
55selectors
56
57atoms
58classdef
59['Apple', 'Banana', 'Coco nut']
60[3, 6, 9, 12, 15]
61[3, 4, 5]
62[(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')]
63[(1, 'Banana'), (1, 'Coconut'), (2, 'Banana'), (2, 'Coconut'), (3, 'Banana'), (3, 'Coconut'), (4, 'Banana'), (4, 'Coconut'), (5, 'Banana'), (5, 'Coconut')]
64[[1], [1, 1], [1, 2, 4], [1, 3, 9, 27], [1, 4, 16, 64, 256]]
65[False, False, False]
66[[1, 2], [3, 4], [5, 6]]
67[('Boeing', 'Airliner'), ('Boeing', 'Engine'), ('Ford', 'Engine'), ('Macdonalds', 'Cheeseburger')]