Browse Source

Tiny README adjustment

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.5.1
Erez Shinan 7 years ago
parent
commit
6d0d9dc434
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      README.md

+ 2
- 1
README.md View File

@@ -100,7 +100,8 @@ grammar = """
""" """


parser = Lark(grammar, start='sentence', ambiguity='explicit') # Explicit ambiguity in parse tree! 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 from lark.tree import pydot__tree_to_png # Just a neat utility function
pydot__tree_to_png(tree, "examples/fruitflies.png") pydot__tree_to_png(tree, "examples/fruitflies.png")


Loading…
Cancel
Save