Browse Source

Docs: Fixed bug in recipes (Issue #633)

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
Erez Sh 4 years ago
parent
commit
7eee42bfae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docs/recipes.md

+ 1
- 1
docs/recipes.md View File

@@ -139,7 +139,7 @@ If your tree nodes aren't unique (if there is a shared Tree instance), the asser

```python
class Parent(Visitor):
def visit(self, tree):
def __default__(self, tree):
for subtree in tree.children:
if isinstance(subtree, Tree):
assert not hasattr(subtree, 'parent')


Loading…
Cancel
Save