Explorar el Código

Tiny README adjustment

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.5.1
Erez Shinan hace 7 años
padre
commit
6d0d9dc434
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      README.md

+ 2
- 1
README.md Ver fichero

@@ -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")


Cargando…
Cancelar
Guardar