File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ by default** except for rules with the special marker `memo` after the rule
545545name (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
861861This will print ** a lot** of output to ` stderr ` so it is probably better to dump
862862it 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> ...
You can’t perform that action at this time.
0 commit comments