8000 Update grammar.rst and compiler.rst to describe the PEG parser by gvanrossum · Pull Request #601 · python/devguide · GitHub
[go: up one dir, main page]

Skip to content

Update grammar.rst and compiler.rst to describe the PEG parser #601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 27, 2020
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
< 8000 div data-view-component="true">
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
0