Skip to content

Commit

Permalink
bpo-40939: Remove the old parser (Part 2) (pythonGH-21005)
Browse files Browse the repository at this point in the history
Remove some remaining files and Makefile targets for the old parser
  • Loading branch information
lysnikolaou authored and fasihahmad committed Jun 29, 2020
1 parent 588fb23 commit 3803bc6
Show file tree
Hide file tree
Showing 24 changed files with 5 additions and 3,534 deletions.
2 changes: 0 additions & 2 deletions .gitattributes
Expand Up @@ -41,8 +41,6 @@ PC/readme.txt text eol=crlf

# Generated files
# https://github.com/github/linguist#generated-code
Include/graminit.h linguist-generated=true
Python/graminit.h linguist-generated=true
Modules/clinic/*.h linguist-generated=true
Objects/clinic/*.h linguist-generated=true
PC/clinic/*.h linguist-generated=true
Expand Down
11 changes: 0 additions & 11 deletions Include/ast.h
Expand Up @@ -6,19 +6,8 @@ extern "C" {
#endif

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

PyAPI_FUNC(int) PyAST_Validate(mod_ty);
PyAPI_FUNC(mod_ty) PyAST_FromNode(
const node *n,
PyCompilerFlags *flags,
const char *filename, /* decoded from the filesystem encoding */
PyArena *arena);
PyAPI_FUNC(mod_ty) PyAST_FromNodeObject(
const node *n,
PyCompilerFlags *flags,
PyObject *filename,
PyArena *arena);

/* _PyAST_ExprAsUnicode is defined in ast_unparse.c */
PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(expr_ty);
Expand Down
23 changes: 0 additions & 23 deletions Include/bitset.h

This file was deleted.

4 changes: 0 additions & 4 deletions Include/compile.h
Expand Up @@ -8,10 +8,6 @@ extern "C" {
#endif

/* Public interface */
struct _node; /* Declare the existence of this type */
PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
/* XXX (ncoghlan): Unprefixed type name in a public API! */

#define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \
CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL | \
Expand Down
94 changes: 0 additions & 94 deletions Include/graminit.h

This file was deleted.

77 changes: 0 additions & 77 deletions Include/grammar.h

This file was deleted.

47 changes: 0 additions & 47 deletions Include/node.h

This file was deleted.

110 changes: 0 additions & 110 deletions Include/parsetok.h

This file was deleted.

0 comments on commit 3803bc6

Please sign in to comment.