Skip to content

Commit 3803bc6

Browse files
lysnikolaoufasihahmad
authored andcommitted
bpo-40939: Remove the old parser (Part 2) (pythonGH-21005)
Remove some remaining files and Makefile targets for the old parser
1 parent 588fb23 commit 3803bc6

24 files changed

+5
-3534
lines changed

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ PC/readme.txt text eol=crlf
4141

4242
# Generated files
4343
# https://github.com/github/linguist#generated-code
44-
Include/graminit.h linguist-generated=true
45-
Python/graminit.h linguist-generated=true
4644
Modules/clinic/*.h linguist-generated=true
4745
Objects/clinic/*.h linguist-generated=true
4846
PC/clinic/*.h linguist-generated=true

Include/ast.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,8 @@ extern "C" {
66
#endif
77

88
#include "Python-ast.h" /* mod_ty */
9-
#include "node.h" /* node */
109

1110
PyAPI_FUNC(int) PyAST_Validate(mod_ty);
12-
PyAPI_FUNC(mod_ty) PyAST_FromNode(
13-
const node *n,
14-
PyCompilerFlags *flags,
15-
const char *filename, /* decoded from the filesystem encoding */
16-
PyArena *arena);
17-
PyAPI_FUNC(mod_ty) PyAST_FromNodeObject(
18-
const node *n,
19-
PyCompilerFlags *flags,
20-
PyObject *filename,
21-
PyArena *arena);
2211

2312
/* _PyAST_ExprAsUnicode is defined in ast_unparse.c */
2413
PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(expr_ty);

Include/bitset.h

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

Include/compile.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ extern "C" {
88
#endif
99

1010
/* Public interface */
11-
struct _node; /* Declare the existence of this type */
12-
PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
13-
/* XXX (ncoghlan): Unprefixed type name in a public API! */
14-
1511
#define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
1612
CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \
1713
CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL | \

Include/graminit.h

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

Include/grammar.h

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

Include/node.h

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

Include/parsetok.h

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

0 commit comments

Comments
 (0)