# Bug report ### Bug description: I am currently experimenting with the cpython parser/tokenizer, following the [parser documentation](https://github.com/python/cpython/blob/main/InternalDocs/parser.md): ```bash $ python3.14 -m pegen python ../../Grammar/python.gram ``` This generates a `parser.py` file, that contains remnants of C code: ``` # line 34 return _PyAST_FunctionType ( a , b , p -> arena ) # end of file void * _PyPegen_parse(Parser *p) { // Initialize keywords p->keywords = reserved_keywords; p->n_keyword_lists = n_keyword_lists; p->soft_keywords = soft_keywords; // Run parser ``` ### CPython versions tested on: CPython main branch ### Operating systems tested on: Linux <!-- gh-linked-prs --> ### Linked PRs * gh-139194 <!-- /gh-linked-prs -->
Bug report
Bug description:
I am currently experimenting with the cpython parser/tokenizer, following the parser documentation:
This generates a
parser.pyfile, that contains remnants of C code:CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
parser.mddoc for pegen parser issue in using the existingGrammar/python.gramfile. #139194