ยปCore Development>Code coverage>Parser/metagrammar.c

Python code coverage for Parser/metagrammar.c

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