1 | n/a | |
---|
2 | n/a | #include "pgenheaders.h" |
---|
3 | n/a | #include "metagrammar.h" |
---|
4 | n/a | #include "grammar.h" |
---|
5 | n/a | #include "pgen.h" |
---|
6 | n/a | static arc arcs_0_0[3] = { |
---|
7 | n/a | {2, 0}, |
---|
8 | n/a | {3, 0}, |
---|
9 | n/a | {4, 1}, |
---|
10 | n/a | }; |
---|
11 | n/a | static arc arcs_0_1[1] = { |
---|
12 | n/a | {0, 1}, |
---|
13 | n/a | }; |
---|
14 | n/a | static state states_0[2] = { |
---|
15 | n/a | {3, arcs_0_0}, |
---|
16 | n/a | {1, arcs_0_1}, |
---|
17 | n/a | }; |
---|
18 | n/a | static arc arcs_1_0[1] = { |
---|
19 | n/a | {5, 1}, |
---|
20 | n/a | }; |
---|
21 | n/a | static arc arcs_1_1[1] = { |
---|
22 | n/a | {6, 2}, |
---|
23 | n/a | }; |
---|
24 | n/a | static arc arcs_1_2[1] = { |
---|
25 | n/a | {7, 3}, |
---|
26 | n/a | }; |
---|
27 | n/a | static arc arcs_1_3[1] = { |
---|
28 | n/a | {3, 4}, |
---|
29 | n/a | }; |
---|
30 | n/a | static arc arcs_1_4[1] = { |
---|
31 | n/a | {0, 4}, |
---|
32 | n/a | }; |
---|
33 | n/a | static state states_1[5] = { |
---|
34 | n/a | {1, arcs_1_0}, |
---|
35 | n/a | {1, arcs_1_1}, |
---|
36 | n/a | {1, arcs_1_2}, |
---|
37 | n/a | {1, arcs_1_3}, |
---|
38 | n/a | {1, arcs_1_4}, |
---|
39 | n/a | }; |
---|
40 | n/a | static arc arcs_2_0[1] = { |
---|
41 | n/a | {8, 1}, |
---|
42 | n/a | }; |
---|
43 | n/a | static arc arcs_2_1[2] = { |
---|
44 | n/a | {9, 0}, |
---|
45 | n/a | {0, 1}, |
---|
46 | n/a | }; |
---|
47 | n/a | static state states_2[2] = { |
---|
48 | n/a | {1, arcs_2_0}, |
---|
49 | n/a | {2, arcs_2_1}, |
---|
50 | n/a | }; |
---|
51 | n/a | static arc arcs_3_0[1] = { |
---|
52 | n/a | {10, 1}, |
---|
53 | n/a | }; |
---|
54 | n/a | static arc arcs_3_1[2] = { |
---|
55 | n/a | {10, 1}, |
---|
56 | n/a | {0, 1}, |
---|
57 | n/a | }; |
---|
58 | n/a | static state states_3[2] = { |
---|
59 | n/a | {1, arcs_3_0}, |
---|
60 | n/a | {2, arcs_3_1}, |
---|
61 | n/a | }; |
---|
62 | n/a | static arc arcs_4_0[2] = { |
---|
63 | n/a | {11, 1}, |
---|
64 | n/a | {13, 2}, |
---|
65 | n/a | }; |
---|
66 | n/a | static arc arcs_4_1[1] = { |
---|
67 | n/a | {7, 3}, |
---|
68 | n/a | }; |
---|
69 | n/a | static arc arcs_4_2[3] = { |
---|
70 | n/a | {14, 4}, |
---|
71 | n/a | {15, 4}, |
---|
72 | n/a | {0, 2}, |
---|
73 | n/a | }; |
---|
74 | n/a | static arc arcs_4_3[1] = { |
---|
75 | n/a | {12, 4}, |
---|
76 | n/a | }; |
---|
77 | n/a | static arc arcs_4_4[1] = { |
---|
78 | n/a | {0, 4}, |
---|
79 | n/a | }; |
---|
80 | n/a | static state states_4[5] = { |
---|
81 | n/a | {2, arcs_4_0}, |
---|
82 | n/a | {1, arcs_4_1}, |
---|
83 | n/a | {3, arcs_4_2}, |
---|
84 | n/a | {1, arcs_4_3}, |
---|
85 | n/a | {1, arcs_4_4}, |
---|
86 | n/a | }; |
---|
87 | n/a | static arc arcs_5_0[3] = { |
---|
88 | n/a | {5, 1}, |
---|
89 | n/a | {16, 1}, |
---|
90 | n/a | {17, 2}, |
---|
91 | n/a | }; |
---|
92 | n/a | static arc arcs_5_1[1] = { |
---|
93 | n/a | {0, 1}, |
---|
94 | n/a | }; |
---|
95 | n/a | static arc arcs_5_2[1] = { |
---|
96 | n/a | {7, 3}, |
---|
97 | n/a | }; |
---|
98 | n/a | static arc arcs_5_3[1] = { |
---|
99 | n/a | {18, 1}, |
---|
100 | n/a | }; |
---|
101 | n/a | static state states_5[4] = { |
---|
102 | n/a | {3, arcs_5_0}, |
---|
103 | n/a | {1, arcs_5_1}, |
---|
104 | n/a | {1, arcs_5_2}, |
---|
105 | n/a | {1, arcs_5_3}, |
---|
106 | n/a | }; |
---|
107 | n/a | static dfa dfas[6] = { |
---|
108 | n/a | {256, "MSTART", 0, 2, states_0, |
---|
109 | n/a | "\070\000\000"}, |
---|
110 | n/a | {257, "RULE", 0, 5, states_1, |
---|
111 | n/a | "\040\000\000"}, |
---|
112 | n/a | {258, "RHS", 0, 2, states_2, |
---|
113 | n/a | "\040\010\003"}, |
---|
114 | n/a | {259, "ALT", 0, 2, states_3, |
---|
115 | n/a | "\040\010\003"}, |
---|
116 | n/a | {260, "ITEM", 0, 5, states_4, |
---|
117 | n/a | "\040\010\003"}, |
---|
118 | n/a | {261, "ATOM", 0, 4, states_5, |
---|
119 | n/a | "\040\000\003"}, |
---|
120 | n/a | }; |
---|
121 | n/a | static label labels[19] = { |
---|
122 | n/a | {0, "EMPTY"}, |
---|
123 | n/a | {256, 0}, |
---|
124 | n/a | {257, 0}, |
---|
125 | n/a | {4, 0}, |
---|
126 | n/a | {0, 0}, |
---|
127 | n/a | {1, 0}, |
---|
128 | n/a | {11, 0}, |
---|
129 | n/a | {258, 0}, |
---|
130 | n/a | {259, 0}, |
---|
131 | n/a | {18, 0}, |
---|
132 | n/a | {260, 0}, |
---|
133 | n/a | {9, 0}, |
---|
134 | n/a | {10, 0}, |
---|
135 | n/a | {261, 0}, |
---|
136 | n/a | {16, 0}, |
---|
137 | n/a | {14, 0}, |
---|
138 | n/a | {3, 0}, |
---|
139 | n/a | {7, 0}, |
---|
140 | n/a | {8, 0}, |
---|
141 | n/a | }; |
---|
142 | n/a | static grammar _PyParser_Grammar = { |
---|
143 | n/a | 6, |
---|
144 | n/a | dfas, |
---|
145 | n/a | {19, labels}, |
---|
146 | n/a | 256 |
---|
147 | n/a | }; |
---|
148 | n/a | |
---|
149 | n/a | grammar * |
---|
150 | n/a | meta_grammar(void) |
---|
151 | n/a | { |
---|
152 | n/a | return &_PyParser_Grammar; |
---|
153 | n/a | } |
---|
154 | n/a | |
---|
155 | n/a | grammar * |
---|
156 | n/a | Py_meta_grammar(void) |
---|
157 | n/a | { |
---|
158 | n/a | return meta_grammar(); |
---|
159 | n/a | } |
---|