blob: 5240bedfd31eb2a9bb6ee15c11fd552bdf77444f [file] [log] [blame]
Barry Warsawdde5c701996-12-10 23:20:09 +00001test_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
Jeremy Hylton619eea62001-01-25 20:12:27 +000016lambdef
Barry Warsawdde5c701996-12-10 23:20:09 +000017simple_stmt
18expr_stmt
19print_stmt
201 2 3
211 2 3
221 1 1
Barry Warsawefc92ee2000-08-21 15:46:50 +000023extended print_stmt
241 2 3
251 2 3
261 1 1
Barry Warsaw9182b452000-08-29 04:57:10 +000027hello world
Barry Warsawdde5c701996-12-10 23:20:09 +000028del_stmt
29pass_stmt
30flow_stmt
31break_stmt
32continue_stmt
Jeremy Hylton3faa52e2001-02-01 22:48:12 +000033continue + try/except ok
34continue + try/finally ok
Thomas Wouters80d373c2001-09-26 12:43:39 +000035testing continue and break in try/except in loop
Barry Warsawdde5c701996-12-10 23:20:09 +000036return_stmt
37raise_stmt
38import_stmt
39global_stmt
40exec_stmt
Jeremy Hyltonf828e2d2001-02-19 15:54:52 +000041assert_stmt
Barry Warsawdde5c701996-12-10 23:20:09 +000042if_stmt
43while_stmt
44for_stmt
45try_stmt
46suite
47test
48comparison
49binary mask ops
50shift ops
51additive ops
52multiplicative ops
53unary ops
54selectors
Jeremy Hyltonaed0d8d2000-03-28 23:51:17 +000055
Barry Warsawdde5c701996-12-10 23:20:09 +000056atoms
57classdef
Skip Montanaro803d6e52000-08-12 18:09:51 +000058['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 Hylton578ceee2001-01-23 01:51:40 +000063[0, 0, 0]
Jeremy Hyltone241e292001-03-19 20:42:11 +000064[[1, 2], [3, 4], [5, 6]]
Skip Montanaro803d6e52000-08-12 18:09:51 +000065[('Boeing', 'Airliner'), ('Boeing', 'Engine'), ('Ford', 'Engine'), ('Macdonalds', 'Cheeseburger')]