From e6caa035cae635c7ac4e1ef1a99d61198b8bfea2 Mon Sep 17 00:00:00 2001 From: Erez Sh Date: Mon, 7 Sep 2020 23:28:49 +0300 Subject: [PATCH] Tiny docs fix --- lark/lark.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lark/lark.py b/lark/lark.py index 27ec9b0..0bf50b8 100644 --- a/lark/lark.py +++ b/lark/lark.py @@ -42,19 +42,20 @@ class LarkOptions(Serialize): When ``False``, ``[]`` behaves like the ``?`` operator, and returns no value at all. (default= ``False``. Recommended to set to ``True``) - regex - When True, uses the ``regex`` module instead of the stdlib ``re``. cache Cache the results of the Lark grammar analysis, for x2 to x3 faster loading. LALR only for now. - When ``False``, does nothing (default) - When ``True``, caches to a temporary file in the local directory - When given a string, caches to the path pointed by the string - + regex + When True, uses the ``regex`` module instead of the stdlib ``re``. g_regex_flags Flags that are applied to all terminals (both regex and strings) keep_all_tokens Prevent the tree builder from automagically removing "punctuation" tokens (default: False) + tree_class + Lark will produce trees comprised of instances of this class instead of the default ``lark.Tree``. **=== Algorithm Options ===**