Fix inconsistencies in `InternalDocs/parser.md` (GH-154917)
ZeroIntensity <[email protected]> Fri, 31 Jul 2026 11:14:19 -0400 (EDT)
| Newsgroups | gmane.comp.python.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://github.com/python/cpython/commit/2ac8900056dcafade8d768a49aacf69e439b0838 commit: 2ac8900056dcafade8d768a49aacf69e439b0838 branch: main author: sijun-yang <[email protected]> committer: ZeroIntensity <[email protected]> date: 2026-07-31T11:14:08-04:00 summary: Fix inconsistencies in `InternalDocs/parser.md` (GH-154917) files: M InternalDocs/parser.md diff --git a/InternalDocs/parser.md b/InternalDocs/parser.md index 1bb4cdea5439f17..a6de8d456b6f71c 100644 --- a/InternalDocs/parser.md +++ b/InternalDocs/parser.md @@ -545,7 +545,7 @@ by default** except for rules with the special marker `memo` after the rule name (and type, if present): ``` -rule_name[typr] (memo): +rule_name[return_type] (memo): ... ``` @@ -772,7 +772,7 @@ from them or to perform extra processing on the generated tree. > Actions must **never** be used to accept or reject rules. It may be tempting > in some situations to write a very generic rule and then check the generated > AST to decide whether it is valid or not, but this will render the -> (official grammar)[https://docs.python.org/3/reference/grammar.html] partially +> [official grammar](https://docs.python.org/3/reference/grammar.html) partially > incorrect (because it does not include actions) and will make it more difficult > for other Python implementations to adapt the grammar to their own needs. @@ -860,7 +860,7 @@ $ python -d file_to_test.py This will print **a lot** of output to `stderr` so it is probably better to dump it to a file for further analysis. The output consists of trace lines with the -following structure:: +following structure: ``` <indentation> ('>'|'-'|'+'|'!') <rule_name>[<token_location>]: <alternative> ... _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]