Browse Source

Fixed Lark's docstring for propagate_positions

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.12.0
Erez Sh 4 years ago
parent
commit
bf7b1f49ca
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lark/lark.py

+ 2
- 1
lark/lark.py View File

@@ -44,8 +44,9 @@ class LarkOptions(Serialize):
Applies the transformer to every parse tree (equivalent to applying it after the parse, but faster) Applies the transformer to every parse tree (equivalent to applying it after the parse, but faster)
propagate_positions propagate_positions
Propagates (line, column, end_line, end_column) attributes into all tree branches. 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 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. When ``False``, ``[]`` behaves like the ``?`` operator, and returns no value at all.
(default= ``False``. Recommended to set to ``True``) (default= ``False``. Recommended to set to ``True``)


Loading…
Cancel
Save