Sfoglia il codice sorgente

Fixed Lark's docstring for propagate_positions

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.12.0
Erez Sh 3 anni fa
parent
commit
bf7b1f49ca
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      lark/lark.py

+ 2
- 1
lark/lark.py Vedi File

@@ -44,8 +44,9 @@ class LarkOptions(Serialize):
Applies the transformer to every parse tree (equivalent to applying it after the parse, but faster)
propagate_positions
Propagates (line, column, end_line, end_column) attributes into all tree branches.
Accepts ``False``, ``True``, or "ignore_ws", which will trim the whitespace around your trees.
maybe_placeholders
When True, the ``[]`` operator returns ``None`` when not matched.
When ``True``, the ``[]`` operator returns ``None`` when not matched.

When ``False``, ``[]`` behaves like the ``?`` operator, and returns no value at all.
(default= ``False``. Recommended to set to ``True``)


Caricamento…
Annulla
Salva