Earley now ignores infinite recursion

This commit is contained in:
Erez Shinan 2018-11-13 14:57:20 +02:00
parent 0935543280
commit 0077366255
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ class TestParsers(unittest.TestCase):
self.assertRaises(GrammarError, Lark, g, parser='lalr') self.assertRaises(GrammarError, Lark, g, parser='lalr')
l = Lark(g, parser='earley', lexer='dynamic') # l = Lark(g, parser='earley', lexer='dynamic')
self.assertRaises(ParseError, l.parse, 'a') # self.assertRaises(ParseError, l.parse, 'a')
def test_propagate_positions(self): def test_propagate_positions(self):
g = Lark("""start: a g = Lark("""start: a