summaryrefslogtreecommitdiffstats
path: root/Include/grammar.h
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-04-13 16:05:14 (GMT)
committerGitHub <noreply@github.com>2019-04-13 16:05:14 (GMT)
commitf2cf1e3e2892a6326949c2570f1bb6d6c95715fb (patch)
treebc8ec61893d284fe2e805191b2ba3c4a59a43879 /Include/grammar.h
parentf8716c88f13f035c126fc1db499ae0ea309c7ece (diff)
downloadcpython-f2cf1e3e2892a6326949c2570f1bb6d6c95715fb.zip
cpython-f2cf1e3e2892a6326949c2570f1bb6d6c95715fb.tar.gz
cpython-f2cf1e3e2892a6326949c2570f1bb6d6c95715fb.tar.bz2
bpo-36623: Clean parser headers and include files (GH-12253)
After the removal of pgen, multiple header and function prototypes that lack implementation or are unused are still lying around.
Diffstat (limited to 'Include/grammar.h')
-rw-r--r--Include/grammar.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/Include/grammar.h b/Include/grammar.h
index 68b928c..7a6182b 100644
--- a/Include/grammar.h
+++ b/Include/grammar.h
@@ -66,27 +66,11 @@ typedef struct {
} grammar;
/* FUNCTIONS */
-
-grammar *newgrammar(int start);
-void freegrammar(grammar *g);
-dfa *adddfa(grammar *g, int type, const char *name);
-int addstate(dfa *d);
-void addarc(dfa *d, int from, int to, int lbl);
dfa *PyGrammar_FindDFA(grammar *g, int type);
-
-int addlabel(labellist *ll, int type, const char *str);
-int findlabel(labellist *ll, int type, const char *str);
const char *PyGrammar_LabelRepr(label *lb);
-void translatelabels(grammar *g);
-
-void addfirstsets(grammar *g);
-
void PyGrammar_AddAccelerators(grammar *g);
void PyGrammar_RemoveAccelerators(grammar *);
-void printgrammar(grammar *g, FILE *fp);
-void printnonterminals(grammar *g, FILE *fp);
-
#ifdef __cplusplus
}
#endif