mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
This commit makes both APIs more consistent by doing the following: - Remove the `PyPegen_CodeObjectFrom*` functions, which weren't used and will probably not be needed. Functions like `Py_CompileStringObject` can be used instead. - Include a `const char *filename` parameter in `PyPegen_ASTFromString`. - Rename `PyPegen_ASTFromFile` to `PyPegen_ASTFromFilename`, because its signature is not the same with `PyParser_ASTFromFile`. |
||
|---|---|---|
| .. | ||
| parse.c | ||
| parse_string.c | ||
| parse_string.h | ||
| peg_api.c | ||
| pegen.c | ||
| pegen.h | ||