Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 2.56 KB

grammar.rst

File metadata and controls

65 lines (45 loc) · 2.56 KB

Changing CPython's Grammar

Abstract

There's more to changing Python's grammar than editing :file:`Grammar/python.gram`. Here's a checklist.

Note

These instructions are for Python 3.9 and beyond. Earlier versions use a different parser technology. You probably shouldn't try to change the grammar of earlier Python versions, but if you really want to, use GitHub to track down the earlier version of this file in the devguide.

For more information on how to use the new parser, check the :ref:`section on how to use CPython's parser <parser>`.

Checklist

Note: sometimes things mysteriously don't work. Before giving up, try make clean.