Visitar URL original
Update grammar.rst and compiler.rst to describe the PEG parser by gvanrossum · Pull Request #601 · python/devguide · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Correction: Tokens doesn't have numerical token values
  • Loading branch information
gvanrossum committed Jul 27, 2020
commit 2220f9e1b37471544c4cbce8edb0480397fb9588
2 changes: 1 addition & 1 deletion compiler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ unusual design (since its input is a stream of tokens rather than a
stream of characters as is more common with PEG parsers).

The grammar file for Python can be found in
:file:`Grammar/python.gram`. The numeric values for literal tokens
:file:`Grammar/python.gram`. The definitions for literal tokens
(such as ``:``, numbers, etc.) can be found in :file:`Grammar/Tokens`.
Various C files, including :file:`Parser/parser.c` are generated from
these (see :doc:`grammar`).
Expand Down