PageRenderTime 1626ms CodeModel.GetById 360ms app.highlight 125ms RepoModel.GetById 1139ms app.codeStats 0ms

/Parser/metagrammar.c

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