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
Fix for earley__all_derivations = False
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.5.1
Erez Shinan
7 years ago
parent
776edadcf4
commit
551482898c
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
lark/parsers/earley.py
+ 3
- 1
lark/parsers/earley.py
View File
@@ -76,7 +76,9 @@ class Item(object):
class Item_JoinDerivations(Item):
__eq__ = Item.similar
__hash__ = Item.__hash__
def __hash__(self):
return hash((self.rule, self.ptr, id(self.start))) # Always runs Derivation.__hash__
class NewsList(list):
Write
Preview
Loading…
Cancel
Save