|
|
@@ -34,7 +34,7 @@ The Lark class accepts a grammar string or file object, and keyword options: |
|
|
|
|
|
|
|
* **propagate_positions** - Propagate line/column count to tree nodes, at the cost of performance (default=`False`) |
|
|
|
|
|
|
|
* **maybe_placeholders** - The `[]` operator returns `None` when not matched. Setting this to `False` makes it behave like the `?` operator, and return no value at all, which may be a little faster (default=`True`) |
|
|
|
* **maybe_placeholders** - When True, the `[]` operator returns `None` when not matched. When `False`, `[]` behaves like the `?` operator, and return no value at all, which may be a little faster (default=`False`) |
|
|
|
|
|
|
|
* **lexer_callbacks** - A dictionary of callbacks of type f(Token) -> Token, used to interface with the lexer Token generation. Only works with the standard and contextual lexers. See [Recipes](recipes.md) for more information. |
|
|
|
|
|
|
|