| @@ -42,19 +42,20 @@ class LarkOptions(Serialize): | |||||
| 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``) | ||||
| regex | |||||
| When True, uses the ``regex`` module instead of the stdlib ``re``. | |||||
| cache | cache | ||||
| Cache the results of the Lark grammar analysis, for x2 to x3 faster loading. LALR only for now. | Cache the results of the Lark grammar analysis, for x2 to x3 faster loading. LALR only for now. | ||||
| - When ``False``, does nothing (default) | - When ``False``, does nothing (default) | ||||
| - When ``True``, caches to a temporary file in the local directory | - When ``True``, caches to a temporary file in the local directory | ||||
| - When given a string, caches to the path pointed by the string | - 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 | g_regex_flags | ||||
| Flags that are applied to all terminals (both regex and strings) | Flags that are applied to all terminals (both regex and strings) | ||||
| keep_all_tokens | keep_all_tokens | ||||
| Prevent the tree builder from automagically removing "punctuation" tokens (default: False) | 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 ===** | **=== Algorithm Options ===** | ||||