This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
gitmirror
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
39
Wiki
Activity
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
899f69a94b
13ddc43782
commit
a1774cad72
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
lark/__init__.py
+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:
Write
Preview
Loading…
Cancel
Save