Browse Source

Merge branch 'master' into 0.7d

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.6.6
Erez Shinan 6 years ago
parent
commit
a1774cad72
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      lark/__init__.py
  2. +1
    -1
      lark/load_grammar.py

+ 1
- 1
lark/__init__.py View File

@@ -5,4 +5,4 @@ from .exceptions import ParseError, LexError, GrammarError, UnexpectedToken, Une
from .lexer import Token
from .lark import Lark

__version__ = "0.6.5"
__version__ = "0.6.6"

+ 1
- 1
lark/load_grammar.py View File

@@ -511,7 +511,7 @@ class Grammar:

empty_indices = [x==_EMPTY for i, x in enumerate(expansion)]
if any(empty_indices):
exp_options = copy(options) or RuleOptions()
exp_options = copy(options) if options else RuleOptions()
exp_options.empty_indices = empty_indices
expansion = [x for x in expansion if x!=_EMPTY]
else:


Loading…
Cancel
Save