Tiny README adjustment

This commit is contained in:
Erez Shinan 2017-04-18 03:16:32 +03:00
parent ae2834862e
commit 6d0d9dc434
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,8 @@ grammar = """
"""
parser = Lark(grammar, start='sentence', ambiguity='explicit') # Explicit ambiguity in parse tree!
tree = fruitflies.parser.parse('fruit flies like bananas')
tree = parser.parse('fruit flies like bananas')
from lark.tree import pydot__tree_to_png # Just a neat utility function
pydot__tree_to_png(tree, "examples/fruitflies.png")