From f70d07fca69e1ab09ed675280c7b5be5a85a2389 Mon Sep 17 00:00:00 2001 From: sijun-yang Date: Thu, 30 Jul 2026 17:28:44 +0900 Subject: [PATCH 1/2] Fix typo in InternalDocs/parser.md --- InternalDocs/parser.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InternalDocs/parser.md b/InternalDocs/parser.md index 1bb4cdea5439f1..5c489022068c0f 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): ... ``` From 5d336f3708957c9722ab8ed1f0eccc4b18495400 Mon Sep 17 00:00:00 2001 From: sijun-yang Date: Thu, 30 Jul 2026 22:30:16 +0900 Subject: [PATCH 2/2] Fix markup issues in InternalDocs/parser.md --- InternalDocs/parser.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InternalDocs/parser.md b/InternalDocs/parser.md index 5c489022068c0f..a6de8d456b6f71 100644 --- a/InternalDocs/parser.md +++ b/InternalDocs/parser.md @@ -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: ``` ('>'|'-'|'+'|'!') []: ...