Skip to content

Commit

Permalink
Update some of the Grammar/Grammar editing instructions (python#332)
Browse files Browse the repository at this point in the history
We removed the temperamental input file change detection for some of
the checked in files, so they now need to be regenerated explicitly
after updating their inputs.
  • Loading branch information
Rosuav authored and ncoghlan committed Mar 1, 2018
1 parent 8116d0f commit 00304cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grammar.rst
Expand Up @@ -30,14 +30,14 @@ Checklist

* Grammar/Grammar: OK, you'd probably worked this one out :)

* Parser/Python.asdl may need changes to match the Grammar. Run make to
regenerate Include/Python-ast.h and Python/Python-ast.c.
* Parser/Python.asdl may need changes to match the Grammar. Then run 'make
regen-ast' to regenerate Include/Python-ast.h and Python/Python-ast.c.

* Python/ast.c will need changes to create the AST objects involved with the
Grammar change.

* Parser/pgen needs to be rerun to regenerate Include/graminit.h and
Python/graminit.c. (make should handle this for you.)
Python/graminit.c. ('make regen-grammar' should handle this for you.)

* Python/symtable.c: This handles the symbol collection pass
that happens immediately before the compilation pass.
Expand Down

0 comments on commit 00304cd

Please sign in to comment.