1 /***********************************************************
2 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
7 Permission to use, copy, modify, and distribute this software and its
8 documentation for any purpose and without fee is hereby granted,
9 provided that the above copyright notice appear in all copies and that
10 both that copyright notice and this permission notice appear in
11 supporting documentation, and that the names of Stichting Mathematisch
12 Centrum or CWI or Corporation for National Research Initiatives or
13 CNRI not be used in advertising or publicity pertaining to
14 distribution of the software without specific, written prior
17 While CWI is the initial source for this software, a modified version
18 is made available by the Corporation for National Research Initiatives
19 (CNRI) at the Internet address ftp://ftp.python.org.
21 STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
22 REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
23 MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
24 CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
25 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
26 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
27 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28 PERFORMANCE OF THIS SOFTWARE.
30 ******************************************************************/
32 #include "pgenheaders.h"
33 #include "metagrammar.h"
36 static arc arcs_0_0
[3] = {
41 static arc arcs_0_1
[1] = {
44 static state states_0
[2] = {
48 static arc arcs_1_0
[1] = {
51 static arc arcs_1_1
[1] = {
54 static arc arcs_1_2
[1] = {
57 static arc arcs_1_3
[1] = {
60 static arc arcs_1_4
[1] = {
63 static state states_1
[5] = {
70 static arc arcs_2_0
[1] = {
73 static arc arcs_2_1
[2] = {
77 static state states_2
[2] = {
81 static arc arcs_3_0
[1] = {
84 static arc arcs_3_1
[2] = {
88 static state states_3
[2] = {
92 static arc arcs_4_0
[2] = {
96 static arc arcs_4_1
[1] = {
99 static arc arcs_4_2
[3] = {
104 static arc arcs_4_3
[1] = {
107 static arc arcs_4_4
[1] = {
110 static state states_4
[5] = {
117 static arc arcs_5_0
[3] = {
122 static arc arcs_5_1
[1] = {
125 static arc arcs_5_2
[1] = {
128 static arc arcs_5_3
[1] = {
131 static state states_5
[4] = {
137 static dfa dfas
[6] = {
138 {256, "MSTART", 0, 2, states_0
,
140 {257, "RULE", 0, 5, states_1
,
142 {258, "RHS", 0, 2, states_2
,
144 {259, "ALT", 0, 2, states_3
,
146 {260, "ITEM", 0, 5, states_4
,
148 {261, "ATOM", 0, 4, states_5
,
151 static label labels
[19] = {
172 static grammar _PyParser_Grammar
= {
182 return &_PyParser_Grammar
;