mirror of https://github.com/lark-parser/lark.git
Earley now ignores infinite recursion
This commit is contained in:
parent
0935543280
commit
0077366255
|
@ -50,8 +50,8 @@ class TestParsers(unittest.TestCase):
|
|||
|
||||
self.assertRaises(GrammarError, Lark, g, parser='lalr')
|
||||
|
||||
l = Lark(g, parser='earley', lexer='dynamic')
|
||||
self.assertRaises(ParseError, l.parse, 'a')
|
||||
# l = Lark(g, parser='earley', lexer='dynamic')
|
||||
# self.assertRaises(ParseError, l.parse, 'a')
|
||||
|
||||
def test_propagate_positions(self):
|
||||
g = Lark("""start: a
|
||||
|
|
Loading…
Reference in New Issue