Browse Source

Merge pull request #672 from lark-parser/tree_matcher

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
Erez Shinan 4 years ago
committed by GitHub
parent
commit
89accea61c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lark/tree_matcher.py

+ 2
- 2
lark/tree_matcher.py View File

@@ -139,9 +139,9 @@ class TreeMatcher:
def match_tree(self, tree, rulename):
"""Match the elements of `tree` to the symbols of rule `rulename`.

Args:
Parameters:
tree (Tree): the tree node to match
rulename ([type]): [description]
rulename (str): The expected full rule name (including template args)

Returns:
Tree: an unreduced tree that matches `rulename`


Loading…
Cancel
Save