Skip to content

Commit 69c49e1

Browse files
Add build.bat counterparts to to checklist (GH-729)
1 parent 37c5344 commit 69c49e1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎grammar.rst‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ Checklist
2323
Note: sometimes things mysteriously don't work. Before giving up, try ``make clean``.
2424

2525
* :file:`Grammar/python.gram`: The grammar, with actions that build AST nodes. After changing
26-
it, run ``make regen-pegen``, to regenerate :file:`Parser/parser.c`.
26+
it, run ``make regen-pegen`` (or ``build.bat --regen`` on Windows), to
27+
regenerate :file:`Parser/parser.c`.
2728
(This runs Python's parser generator, ``Tools/peg_generator``).
2829

2930
* :file:`Grammar/Tokens` is a place for adding new token types. After
3031
changing it, run ``make regen-token`` to regenerate :file:`Include/token.h`,
3132
:file:`Parser/token.c`, :file:`Lib/token.py` and
3233
:file:`Doc/library/token-list.inc`. If you change both ``python.gram`` and ``Tokens``,
33-
run ``make regen-token`` before ``make regen-pegen``.
34+
run ``make regen-token`` before ``make regen-pegen``. On Windows,
35+
``build.bat --regen`` will regenerate both at the same time.
3436

3537
* :file:`Parser/Python.asdl` may need changes to match the grammar. Then run ``make
3638
regen-ast`` to regenerate :file:`Include/Python-ast.h` and :file:`Python/Python-ast.c`.

0 commit comments

Comments
 (0)