Commit | Line | Data |
---|---|---|
920dae64 AT |
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_name | |
39 | import_from | |
40 | global_stmt | |
41 | exec_stmt | |
42 | assert_stmt | |
43 | if_stmt | |
44 | while_stmt | |
45 | for_stmt | |
46 | try_stmt | |
47 | suite | |
48 | test | |
49 | comparison | |
50 | binary mask ops | |
51 | shift ops | |
52 | additive ops | |
53 | multiplicative ops | |
54 | unary ops | |
55 | selectors | |
56 | ||
57 | atoms | |
58 | classdef | |
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')] |