Python-2.7.3/Parser/metagrammar.c

No issues found

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