From 0077366255477b9db62b3df6e0c659e66f0d0495 Mon Sep 17 00:00:00 2001 From: Erez Shinan Date: Tue, 13 Nov 2018 14:57:20 +0200 Subject: [PATCH] Earley now ignores infinite recursion --- tests/test_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_parser.py b/tests/test_parser.py index 13c674d..a54ecc4 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -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