Skip to content

Commit b27230a

Browse files
committed
Remove pgen
1 parent 80c1217 commit b27230a

19 files changed

+0
-1800
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ PCbuild/amd64/
7272
PCbuild/obj/
7373
PCbuild/win32/
7474
.purify
75-
Parser/pgen
76-
Parser/pgen.exe
7775
__pycache__
7876
autom4te.cache
7977
build/

Include/metagrammar.h

Lines changed: 0 additions & 18 deletions
This file was deleted.

Include/parsetok.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ extern "C" {
1212

1313
typedef struct {
1414
int error;
15-
#ifndef PGEN
16-
/* The filename is useless for pgen, see comment in tok_state structure */
1715
PyObject *filename;
18-
#endif
1916
int lineno;
2017
int offset;
2118
char *text; /* UTF-8-encoded string */

Include/pgen.h

Lines changed: 0 additions & 18 deletions
This file was deleted.

Misc/coverity_model.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,6 @@ wchar_t *Py_DecodeLocale(const char* arg, size_t *size)
9292
return w;
9393
}
9494

95-
/* Parser/pgenmain.c */
96-
grammar *getgrammar(const char *filename)
97-
{
98-
grammar *g;
99-
__coverity_tainted_data_sink__(filename);
100-
return g;
101-
}
102-
10395
/* Python/marshal.c */
10496

10597
static Py_ssize_t r_string(char *s, Py_ssize_t n, RFILE *p)

PCbuild/pythoncore.vcxproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
<ClInclude Include="..\Include\longobject.h" />
145145
<ClInclude Include="..\Include\marshal.h" />
146146
<ClInclude Include="..\Include\memoryobject.h" />
147-
<ClInclude Include="..\Include\metagrammar.h" />
148147
<ClInclude Include="..\Include\methodobject.h" />
149148
<ClInclude Include="..\Include\modsupport.h" />
150149
<ClInclude Include="..\Include\moduleobject.h" />
@@ -158,7 +157,6 @@
158157
<ClInclude Include="..\Include\osmodule.h" />
159158
<ClInclude Include="..\Include\parsetok.h" />
160159
<ClInclude Include="..\Include\patchlevel.h" />
161-
<ClInclude Include="..\Include\pgen.h" />
162160
<ClInclude Include="..\Include\pgenheaders.h" />
163161
<ClInclude Include="..\Include\pyhash.h" />
164162
<ClInclude Include="..\Include\py_curses.h" />
@@ -355,12 +353,8 @@
355353
<ClCompile Include="..\Objects\unicodeobject.c" />
356354
<ClCompile Include="..\Objects\weakrefobject.c" />
357355
<ClCompile Include="..\Parser\acceler.c" />
358-
<ClCompile Include="..\Parser\bitset.c" />
359-
<ClCompile Include="..\Parser\firstsets.c" />
360-
<ClCompile Include="..\Parser\grammar.c" />
361356
<ClCompile Include="..\Parser\grammar1.c" />
362357
<ClCompile Include="..\Parser\listnode.c" />
363-
<ClCompile Include="..\Parser\metagrammar.c" />
364358
<ClCompile Include="..\Parser\myreadline.c" />
365359
<ClCompile Include="..\Parser\node.c" />
366360
<ClCompile Include="..\Parser\parser.c" />

PCbuild/pythoncore.vcxproj.filters

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,6 @@
231231
<ClInclude Include="..\Include\memoryobject.h">
232232
<Filter>Include</Filter>
233233
</ClInclude>
234-
<ClInclude Include="..\Include\metagrammar.h">
235-
<Filter>Include</Filter>
236-
</ClInclude>
237234
<ClInclude Include="..\Include\methodobject.h">
238235
<Filter>Include</Filter>
239236
</ClInclude>
@@ -267,9 +264,6 @@
267264
<ClInclude Include="..\Include\patchlevel.h">
268265
<Filter>Include</Filter>
269266
</ClInclude>
270-
<ClInclude Include="..\Include\pgen.h">
271-
<Filter>Include</Filter>
272-
</ClInclude>
273267
<ClInclude Include="..\Include\pgenheaders.h">
274268
<Filter>Include</Filter>
275269
</ClInclude>
@@ -833,24 +827,12 @@
833827
<ClCompile Include="..\Parser\acceler.c">
834828
<Filter>Parser</Filter>
835829
</ClCompile>
836-
<ClCompile Include="..\Parser\bitset.c">
837-
<Filter>Parser</Filter>
838-
</ClCompile>
839-
<ClCompile Include="..\Parser\firstsets.c">
840-
<Filter>Parser</Filter>
841-
</ClCompile>
842-
<ClCompile Include="..\Parser\grammar.c">
843-
<Filter>Parser</Filter>
844-
</ClCompile>
845830
<ClCompile Include="..\Parser\grammar1.c">
846831
<Filter>Parser</Filter>
847832
</ClCompile>
848833
<ClCompile Include="..\Parser\listnode.c">
849834
<Filter>Parser</Filter>
850835
</ClCompile>
851-
<ClCompile Include="..\Parser\metagrammar.c">
852-
<Filter>Parser</Filter>
853-
</ClCompile>
854836
<ClCompile Include="..\Parser\myreadline.c">
855837
<Filter>Parser</Filter>
856838
</ClCompile>

Parser/bitset.c

Lines changed: 0 additions & 66 deletions
This file was deleted.

Parser/firstsets.c

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)