Skip to content

Commit 2ac8900

Browse files
authored
Fix inconsistencies in InternalDocs/parser.md (GH-154917)
1 parent 6a139d6 commit 2ac8900

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

InternalDocs/parser.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ by default** except for rules with the special marker `memo` after the rule
545545
name (and type, if present):
546546

547547
```
548-
rule_name[typr] (memo):
548+
rule_name[return_type] (memo):
549549
...
550550
```
551551

@@ -772,7 +772,7 @@ from them or to perform extra processing on the generated tree.
772772
> Actions must **never** be used to accept or reject rules. It may be tempting
773773
> in some situations to write a very generic rule and then check the generated
774774
> AST to decide whether it is valid or not, but this will render the
775-
> (official grammar)[https://docs.python.org/3/reference/grammar.html] partially
775+
> [official grammar](https://docs.python.org/3/reference/grammar.html) partially
776776
> incorrect (because it does not include actions) and will make it more difficult
777777
> for other Python implementations to adapt the grammar to their own needs.
778778
@@ -860,7 +860,7 @@ $ python -d file_to_test.py
860860

861861
This will print **a lot** of output to `stderr` so it is probably better to dump
862862
it to a file for further analysis. The output consists of trace lines with the
863-
following structure::
863+
following structure:
864864

865865
```
866866
<indentation> ('>'|'-'|'+'|'!') <rule_name>[<token_location>]: <alternative> ...

0 commit comments

Comments
 (0)