blob: 29d48052e4bc9b12624085a7cc0ec59cb98f1a4d [file] [log] [blame]
Pablo Galindoc5fc1562020-04-22 23:29:27 +01001#ifndef PEGEN_H
2#define PEGEN_H
3
4#define PY_SSIZE_T_CLEAN
5#include <Python.h>
6#include <token.h>
Victor Stinner94faa072021-03-23 20:47:40 +01007#include <pycore_ast.h>
Pablo Galindoc5fc1562020-04-22 23:29:27 +01008
Pablo Galindo2b74c832020-04-27 18:02:07 +01009#if 0
10#define PyPARSE_YIELD_IS_KEYWORD 0x0001
11#endif
12
13#define PyPARSE_DONT_IMPLY_DEDENT 0x0002
14
15#if 0
16#define PyPARSE_WITH_IS_KEYWORD 0x0003
17#define PyPARSE_PRINT_IS_FUNCTION 0x0004
18#define PyPARSE_UNICODE_LITERALS 0x0008
19#endif
20
21#define PyPARSE_IGNORE_COOKIE 0x0010
22#define PyPARSE_BARRY_AS_BDFL 0x0020
23#define PyPARSE_TYPE_COMMENTS 0x0040
24#define PyPARSE_ASYNC_HACKS 0x0080
25
Pablo Galindoc5fc1562020-04-22 23:29:27 +010026typedef struct _memo {
27 int type;
28 void *node;
29 int mark;
30 struct _memo *next;
31} Memo;
32
33typedef struct {
34 int type;
35 PyObject *bytes;
Pablo Galindo Salgadoc72311d2021-11-25 01:01:40 +000036 int level;
Lysandros Nikolaou861efc62020-06-20 15:57:27 +030037 int lineno, col_offset, end_lineno, end_col_offset;
Pablo Galindoc5fc1562020-04-22 23:29:27 +010038 Memo *memo;
39} Token;
40
41typedef struct {
42 char *str;
43 int type;
44} KeywordToken;
45
Guido van Rossumc001c092020-04-30 12:12:19 -070046
47typedef struct {
48 struct {
49 int lineno;
50 char *comment; // The " <tag>" in "# type: ignore <tag>"
51 } *items;
52 size_t size;
53 size_t num_items;
54} growable_comment_array;
55
Pablo Galindoc5fc1562020-04-22 23:29:27 +010056typedef struct {
57 struct tok_state *tok;
58 Token **tokens;
59 int mark;
60 int fill, size;
61 PyArena *arena;
62 KeywordToken **keywords;
Pablo Galindob2802482021-04-15 21:38:45 +010063 char **soft_keywords;
Pablo Galindoc5fc1562020-04-22 23:29:27 +010064 int n_keyword_lists;
65 int start_rule;
66 int *errcode;
67 int parsing_started;
68 PyObject* normalize;
69 int starting_lineno;
70 int starting_col_offset;
71 int error_indicator;
Pablo Galindo2b74c832020-04-27 18:02:07 +010072 int flags;
Lysandros Nikolaou3e0a6f32020-05-01 06:27:52 +030073 int feature_version;
Guido van Rossumc001c092020-04-30 12:12:19 -070074 growable_comment_array type_ignore_comments;
Lysandros Nikolaou2f37c352020-05-07 13:37:51 +030075 Token *known_err_token;
Pablo Galindo800a35c62020-05-25 18:38:45 +010076 int level;
Lysandros Nikolaoubca70142020-10-27 00:42:04 +020077 int call_invalid_rules;
Miss Islington (bot)ae1732d2021-05-21 11:20:43 -070078 int in_raw_rule;
Pablo Galindoc5fc1562020-04-22 23:29:27 +010079} Parser;
80
81typedef struct {
82 cmpop_ty cmpop;
83 expr_ty expr;
84} CmpopExprPair;
85
86typedef struct {
87 expr_ty key;
88 expr_ty value;
89} KeyValuePair;
90
91typedef struct {
Nick Coghlan1e7b8582021-04-29 15:58:44 +100092 expr_ty key;
93 pattern_ty pattern;
94} KeyPatternPair;
95
96typedef struct {
Pablo Galindoc5fc1562020-04-22 23:29:27 +010097 arg_ty arg;
98 expr_ty value;
99} NameDefaultPair;
100
101typedef struct {
Pablo Galindoa5634c42020-09-16 19:42:00 +0100102 asdl_arg_seq *plain_names;
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100103 asdl_seq *names_with_defaults; // asdl_seq* of NameDefaultsPair's
104} SlashWithDefault;
105
106typedef struct {
107 arg_ty vararg;
108 asdl_seq *kwonlyargs; // asdl_seq* of NameDefaultsPair's
109 arg_ty kwarg;
110} StarEtc;
111
Victor Stinner94faa072021-03-23 20:47:40 +0100112typedef struct { operator_ty kind; } AugOperator;
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100113typedef struct {
114 void *element;
115 int is_keyword;
116} KeywordOrStarred;
117
Pablo Galindo58bafe42021-04-09 01:17:31 +0100118#if defined(Py_DEBUG)
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100119void _PyPegen_clear_memo_statistics(void);
120PyObject *_PyPegen_get_memo_statistics(void);
Pablo Galindo58bafe42021-04-09 01:17:31 +0100121#endif
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100122
123int _PyPegen_insert_memo(Parser *p, int mark, int type, void *node);
124int _PyPegen_update_memo(Parser *p, int mark, int type, void *node);
125int _PyPegen_is_memoized(Parser *p, int type, void *pres);
126
Pablo Galindo58fb1562021-02-02 19:54:22 +0000127
Pablo Galindo1df5a9e2020-04-23 12:42:13 +0100128int _PyPegen_lookahead_with_name(int, expr_ty (func)(Parser *), Parser *);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100129int _PyPegen_lookahead_with_int(int, Token *(func)(Parser *, int), Parser *, int);
Pablo Galindo404b23b2020-05-27 00:15:52 +0100130int _PyPegen_lookahead_with_string(int , expr_ty (func)(Parser *, const char*), Parser *, const char*);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100131int _PyPegen_lookahead(int, void *(func)(Parser *), Parser *);
132
133Token *_PyPegen_expect_token(Parser *p, int type);
Pablo Galindo58fb1562021-02-02 19:54:22 +0000134Token *_PyPegen_expect_forced_token(Parser *p, int type, const char* expected);
Guido van Rossumb45af1a2020-05-26 10:58:44 -0700135expr_ty _PyPegen_expect_soft_keyword(Parser *p, const char *keyword);
Pablo Galindob2802482021-04-15 21:38:45 +0100136expr_ty _PyPegen_soft_keyword_token(Parser *p);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100137Token *_PyPegen_get_last_nonnwhitespace_token(Parser *);
138int _PyPegen_fill_token(Parser *p);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100139expr_ty _PyPegen_name_token(Parser *p);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100140expr_ty _PyPegen_number_token(Parser *p);
141void *_PyPegen_string_token(Parser *p);
142const char *_PyPegen_get_expr_name(expr_ty);
Lysandros Nikolaoua15c9b32020-05-13 22:36:27 +0300143void *_PyPegen_raise_error(Parser *p, PyObject *errtype, const char *errmsg, ...);
144void *_PyPegen_raise_error_known_location(Parser *p, PyObject *errtype,
Pablo Galindo51c58962020-06-16 16:49:43 +0100145 Py_ssize_t lineno, Py_ssize_t col_offset,
Pablo Galindoa77aac42021-04-23 14:27:05 +0100146 Py_ssize_t end_lineno, Py_ssize_t end_col_offset,
Lysandros Nikolaoua15c9b32020-05-13 22:36:27 +0300147 const char *errmsg, va_list va);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100148void *_PyPegen_dummy_name(Parser *p, ...);
149
Pablo Galindoa77aac42021-04-23 14:27:05 +0100150void * _PyPegen_seq_last_item(asdl_seq *seq);
151#define PyPegen_last_item(seq, type) ((type)_PyPegen_seq_last_item((asdl_seq*)seq))
152
Miss Islington (bot)11f1a302021-06-24 08:34:28 -0700153void * _PyPegen_seq_first_item(asdl_seq *seq);
154#define PyPegen_first_item(seq, type) ((type)_PyPegen_seq_first_item((asdl_seq*)seq))
155
Pablo Galindoa77aac42021-04-23 14:27:05 +0100156#define CURRENT_POS (-5)
157
Lysandros Nikolaoua15c9b32020-05-13 22:36:27 +0300158Py_LOCAL_INLINE(void *)
Pablo Galindo96eeff52021-03-22 17:28:11 +0000159RAISE_ERROR_KNOWN_LOCATION(Parser *p, PyObject *errtype,
160 Py_ssize_t lineno, Py_ssize_t col_offset,
Brandt Bucherdbe60ee2021-04-29 17:19:28 -0700161 Py_ssize_t end_lineno, Py_ssize_t end_col_offset,
Pablo Galindo96eeff52021-03-22 17:28:11 +0000162 const char *errmsg, ...)
Lysandros Nikolaoua15c9b32020-05-13 22:36:27 +0300163{
164 va_list va;
165 va_start(va, errmsg);
Pablo Galindoa77aac42021-04-23 14:27:05 +0100166 Py_ssize_t _col_offset = (col_offset == CURRENT_POS ? CURRENT_POS : col_offset + 1);
167 Py_ssize_t _end_col_offset = (end_col_offset == CURRENT_POS ? CURRENT_POS : end_col_offset + 1);
168 _PyPegen_raise_error_known_location(p, errtype, lineno, _col_offset, end_lineno, _end_col_offset, errmsg, va);
Lysandros Nikolaoua15c9b32020-05-13 22:36:27 +0300169 va_end(va);
170 return NULL;
171}
172
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100173#define UNUSED(expr) do { (void)(expr); } while (0)
Pablo Galindo58bafe42021-04-09 01:17:31 +0100174#define EXTRA_EXPR(head, tail) head->lineno, (head)->col_offset, (tail)->end_lineno, (tail)->end_col_offset, p->arena
Pablo Galindoac7a92c2020-05-10 05:34:50 +0100175#define EXTRA _start_lineno, _start_col_offset, _end_lineno, _end_col_offset, p->arena
Lysandros Nikolaoua15c9b32020-05-13 22:36:27 +0300176#define RAISE_SYNTAX_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_SyntaxError, msg, ##__VA_ARGS__)
177#define RAISE_INDENTATION_ERROR(msg, ...) _PyPegen_raise_error(p, PyExc_IndentationError, msg, ##__VA_ARGS__)
Pablo Galindoa77aac42021-04-23 14:27:05 +0100178#define RAISE_SYNTAX_ERROR_KNOWN_RANGE(a, b, msg, ...) \
179 RAISE_ERROR_KNOWN_LOCATION(p, PyExc_SyntaxError, (a)->lineno, (a)->col_offset, (b)->end_lineno, (b)->end_col_offset, msg, ##__VA_ARGS__)
Lysandros Nikolaoua15c9b32020-05-13 22:36:27 +0300180#define RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a, msg, ...) \
Pablo Galindoa77aac42021-04-23 14:27:05 +0100181 RAISE_ERROR_KNOWN_LOCATION(p, PyExc_SyntaxError, (a)->lineno, (a)->col_offset, (a)->end_lineno, (a)->end_col_offset, msg, ##__VA_ARGS__)
182#define RAISE_SYNTAX_ERROR_STARTING_FROM(a, msg, ...) \
183 RAISE_ERROR_KNOWN_LOCATION(p, PyExc_SyntaxError, (a)->lineno, (a)->col_offset, CURRENT_POS, CURRENT_POS, msg, ##__VA_ARGS__)
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100184
185Py_LOCAL_INLINE(void *)
186CHECK_CALL(Parser *p, void *result)
187{
188 if (result == NULL) {
189 assert(PyErr_Occurred());
190 p->error_indicator = 1;
191 }
192 return result;
193}
194
195/* This is needed for helper functions that are allowed to
196 return NULL without an error. Example: _PyPegen_seq_extract_starred_exprs */
197Py_LOCAL_INLINE(void *)
198CHECK_CALL_NULL_ALLOWED(Parser *p, void *result)
199{
200 if (result == NULL && PyErr_Occurred()) {
201 p->error_indicator = 1;
202 }
203 return result;
204}
205
Lysandros Nikolaou2e5ca9e2020-10-21 22:53:14 +0300206#define CHECK(type, result) ((type) CHECK_CALL(p, result))
207#define CHECK_NULL_ALLOWED(type, result) ((type) CHECK_CALL_NULL_ALLOWED(p, result))
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100208
Serhiy Storchakac43317d2021-06-12 20:44:32 +0300209PyObject *_PyPegen_new_type_comment(Parser *, const char *);
Guido van Rossumc001c092020-04-30 12:12:19 -0700210
211Py_LOCAL_INLINE(PyObject *)
212NEW_TYPE_COMMENT(Parser *p, Token *tc)
213{
214 if (tc == NULL) {
215 return NULL;
216 }
Serhiy Storchakac43317d2021-06-12 20:44:32 +0300217 const char *bytes = PyBytes_AsString(tc->bytes);
Guido van Rossumc001c092020-04-30 12:12:19 -0700218 if (bytes == NULL) {
219 goto error;
220 }
221 PyObject *tco = _PyPegen_new_type_comment(p, bytes);
222 if (tco == NULL) {
223 goto error;
224 }
225 return tco;
226 error:
227 p->error_indicator = 1; // Inline CHECK_CALL
228 return NULL;
229}
230
Lysandros Nikolaou3e0a6f32020-05-01 06:27:52 +0300231Py_LOCAL_INLINE(void *)
232INVALID_VERSION_CHECK(Parser *p, int version, char *msg, void *node)
233{
234 if (node == NULL) {
235 p->error_indicator = 1; // Inline CHECK_CALL
236 return NULL;
237 }
238 if (p->feature_version < version) {
239 p->error_indicator = 1;
Batuhan Taskaya76c1b4d2020-05-01 16:13:43 +0300240 return RAISE_SYNTAX_ERROR("%s only supported in Python 3.%i and greater",
241 msg, version);
Lysandros Nikolaou3e0a6f32020-05-01 06:27:52 +0300242 }
243 return node;
244}
245
Lysandros Nikolaou2e5ca9e2020-10-21 22:53:14 +0300246#define CHECK_VERSION(type, version, msg, node) ((type) INVALID_VERSION_CHECK(p, version, msg, node))
Lysandros Nikolaou3e0a6f32020-05-01 06:27:52 +0300247
Guido van Rossumc001c092020-04-30 12:12:19 -0700248arg_ty _PyPegen_add_type_comment_to_arg(Parser *, arg_ty, Token *);
Serhiy Storchakac43317d2021-06-12 20:44:32 +0300249PyObject *_PyPegen_new_identifier(Parser *, const char *);
Lysandros Nikolaou3e0a6f32020-05-01 06:27:52 +0300250Parser *_PyPegen_Parser_New(struct tok_state *, int, int, int, int *, PyArena *);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100251void _PyPegen_Parser_Free(Parser *);
252mod_ty _PyPegen_run_parser_from_file_pointer(FILE *, int, PyObject *, const char *,
Pablo Galindo2b74c832020-04-27 18:02:07 +0100253 const char *, const char *, PyCompilerFlags *, int *, PyArena *);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100254void *_PyPegen_run_parser(Parser *);
Pablo Galindo2b74c832020-04-27 18:02:07 +0100255mod_ty _PyPegen_run_parser_from_string(const char *, int, PyObject *, PyCompilerFlags *, PyArena *);
Pablo Galindoa5634c42020-09-16 19:42:00 +0100256asdl_stmt_seq *_PyPegen_interactive_exit(Parser *);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100257asdl_seq *_PyPegen_singleton_seq(Parser *, void *);
258asdl_seq *_PyPegen_seq_insert_in_front(Parser *, void *, asdl_seq *);
Guido van Rossumc001c092020-04-30 12:12:19 -0700259asdl_seq *_PyPegen_seq_append_to_end(Parser *, asdl_seq *, void *);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100260asdl_seq *_PyPegen_seq_flatten(Parser *, asdl_seq *);
261expr_ty _PyPegen_join_names_with_dot(Parser *, expr_ty, expr_ty);
262int _PyPegen_seq_count_dots(asdl_seq *);
Matthew Suozzo75a06f02021-04-10 16:56:28 -0400263alias_ty _PyPegen_alias_for_star(Parser *, int, int, int, int, PyArena *);
Pablo Galindoa5634c42020-09-16 19:42:00 +0100264asdl_identifier_seq *_PyPegen_map_names_to_ids(Parser *, asdl_expr_seq *);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100265CmpopExprPair *_PyPegen_cmpop_expr_pair(Parser *, cmpop_ty, expr_ty);
266asdl_int_seq *_PyPegen_get_cmpops(Parser *p, asdl_seq *);
Pablo Galindoa5634c42020-09-16 19:42:00 +0100267asdl_expr_seq *_PyPegen_get_exprs(Parser *, asdl_seq *);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100268expr_ty _PyPegen_set_expr_context(Parser *, expr_ty, expr_context_ty);
269KeyValuePair *_PyPegen_key_value_pair(Parser *, expr_ty, expr_ty);
Pablo Galindoa5634c42020-09-16 19:42:00 +0100270asdl_expr_seq *_PyPegen_get_keys(Parser *, asdl_seq *);
271asdl_expr_seq *_PyPegen_get_values(Parser *, asdl_seq *);
Nick Coghlan1e7b8582021-04-29 15:58:44 +1000272KeyPatternPair *_PyPegen_key_pattern_pair(Parser *, expr_ty, pattern_ty);
273asdl_expr_seq *_PyPegen_get_pattern_keys(Parser *, asdl_seq *);
274asdl_pattern_seq *_PyPegen_get_patterns(Parser *, asdl_seq *);
Guido van Rossumc001c092020-04-30 12:12:19 -0700275NameDefaultPair *_PyPegen_name_default_pair(Parser *, arg_ty, expr_ty, Token *);
Pablo Galindoa5634c42020-09-16 19:42:00 +0100276SlashWithDefault *_PyPegen_slash_with_default(Parser *, asdl_arg_seq *, asdl_seq *);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100277StarEtc *_PyPegen_star_etc(Parser *, arg_ty, asdl_seq *, arg_ty);
Pablo Galindoa5634c42020-09-16 19:42:00 +0100278arguments_ty _PyPegen_make_arguments(Parser *, asdl_arg_seq *, SlashWithDefault *,
279 asdl_arg_seq *, asdl_seq *, StarEtc *);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100280arguments_ty _PyPegen_empty_arguments(Parser *);
281AugOperator *_PyPegen_augoperator(Parser*, operator_ty type);
Pablo Galindoa5634c42020-09-16 19:42:00 +0100282stmt_ty _PyPegen_function_def_decorators(Parser *, asdl_expr_seq *, stmt_ty);
283stmt_ty _PyPegen_class_def_decorators(Parser *, asdl_expr_seq *, stmt_ty);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100284KeywordOrStarred *_PyPegen_keyword_or_starred(Parser *, void *, int);
Pablo Galindoa5634c42020-09-16 19:42:00 +0100285asdl_expr_seq *_PyPegen_seq_extract_starred_exprs(Parser *, asdl_seq *);
286asdl_keyword_seq *_PyPegen_seq_delete_starred_exprs(Parser *, asdl_seq *);
287expr_ty _PyPegen_collect_call_seqs(Parser *, asdl_expr_seq *, asdl_seq *,
Pablo Galindo315a61f2020-09-03 15:29:32 +0100288 int lineno, int col_offset, int end_lineno,
289 int end_col_offset, PyArena *arena);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100290expr_ty _PyPegen_concatenate_strings(Parser *p, asdl_seq *);
Nick Coghlan1e7b8582021-04-29 15:58:44 +1000291expr_ty _PyPegen_ensure_imaginary(Parser *p, expr_ty);
Brandt Bucherdbe60ee2021-04-29 17:19:28 -0700292expr_ty _PyPegen_ensure_real(Parser *p, expr_ty);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100293asdl_seq *_PyPegen_join_sequences(Parser *, asdl_seq *, asdl_seq *);
Pablo Galindo06f8c332020-10-30 23:48:42 +0000294int _PyPegen_check_barry_as_flufl(Parser *, Token *);
Pablo Galindo Salgadob977f852021-07-27 18:52:32 +0100295int _PyPegen_check_legacy_stmt(Parser *p, expr_ty t);
Pablo Galindoa5634c42020-09-16 19:42:00 +0100296mod_ty _PyPegen_make_module(Parser *, asdl_stmt_seq *);
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100297
Pablo Galindo16ab0702020-05-15 02:04:52 +0100298// Error reporting helpers
Lysandros Nikolaou01ece632020-06-19 02:10:43 +0300299typedef enum {
300 STAR_TARGETS,
301 DEL_TARGETS,
302 FOR_TARGETS
303} TARGETS_TYPE;
304expr_ty _PyPegen_get_invalid_target(expr_ty e, TARGETS_TYPE targets_type);
Lysandros Nikolaou6c4e0bd2020-06-21 05:18:01 +0300305#define RAISE_SYNTAX_ERROR_INVALID_TARGET(type, e) _RAISE_SYNTAX_ERROR_INVALID_TARGET(p, type, e)
306
307Py_LOCAL_INLINE(void *)
308_RAISE_SYNTAX_ERROR_INVALID_TARGET(Parser *p, TARGETS_TYPE type, void *e)
309{
Lysandros Nikolaou2e5ca9e2020-10-21 22:53:14 +0300310 expr_ty invalid_target = CHECK_NULL_ALLOWED(expr_ty, _PyPegen_get_invalid_target(e, type));
Lysandros Nikolaou6c4e0bd2020-06-21 05:18:01 +0300311 if (invalid_target != NULL) {
312 const char *msg;
313 if (type == STAR_TARGETS || type == FOR_TARGETS) {
314 msg = "cannot assign to %s";
315 }
316 else {
317 msg = "cannot delete %s";
318 }
319 return RAISE_SYNTAX_ERROR_KNOWN_LOCATION(
320 invalid_target,
321 msg,
322 _PyPegen_get_expr_name(invalid_target)
323 );
Pablo Galindo Salgadoc5214122021-12-07 15:23:33 +0000324 return RAISE_SYNTAX_ERROR_KNOWN_LOCATION(invalid_target, "invalid syntax");
Lysandros Nikolaou6c4e0bd2020-06-21 05:18:01 +0300325 }
Pablo Galindo Salgadoc5214122021-12-07 15:23:33 +0000326 return NULL;
Lysandros Nikolaou6c4e0bd2020-06-21 05:18:01 +0300327}
Lysandros Nikolaou01ece632020-06-19 02:10:43 +0300328
Lysandros Nikolaou75b863a2020-05-18 22:14:47 +0300329void *_PyPegen_arguments_parsing_error(Parser *, expr_ty);
Miss Islington (bot)9e209d42021-09-27 07:05:20 -0700330void *_PyPegen_nonparen_genexp_in_call(Parser *p, expr_ty args, asdl_comprehension_seq *comprehensions);
Lysandros Nikolaou75b863a2020-05-18 22:14:47 +0300331
Pablo Galindo16ab0702020-05-15 02:04:52 +0100332
Lysandros Nikolaou01ece632020-06-19 02:10:43 +0300333// Generated function in parse.c - function definition in python.gram
Pablo Galindoc5fc1562020-04-22 23:29:27 +0100334void *_PyPegen_parse(Parser *);
335
336#endif