From c4f8483c09312df428e002f856f046e1f01080fb Mon Sep 17 00:00:00 2001 From: Erez Shinan Date: Sun, 20 Jan 2019 14:35:38 +0200 Subject: [PATCH 1/2] Small fix --- lark/load_grammar.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lark/load_grammar.py b/lark/load_grammar.py index 69b7b01..b5b1278 100644 --- a/lark/load_grammar.py +++ b/lark/load_grammar.py @@ -510,8 +510,7 @@ class Grammar: empty_indices = [x==_EMPTY for i, x in enumerate(expansion)] if any(empty_indices): - assert options - exp_options = copy(options) + exp_options = copy(options) if options else RuleOptions() exp_options.empty_indices = empty_indices expansion = [x for x in expansion if x!=_EMPTY] else: From 13ddc43782e9f3f34fc5331081682c3678df0598 Mon Sep 17 00:00:00 2001 From: Erez Shinan Date: Sun, 20 Jan 2019 14:31:05 +0200 Subject: [PATCH 2/2] Version bump --- lark/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lark/__init__.py b/lark/__init__.py index 83d03f8..fd5b28e 100644 --- a/lark/__init__.py +++ b/lark/__init__.py @@ -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"