Browse Source

Earley now ignores infinite recursion

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.6.6
Erez Shinan 6 years ago
parent
commit
0077366255
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tests/test_parser.py

+ 2
- 2
tests/test_parser.py 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')
self.assertRaises(ParseError, l.parse, 'a')
# l = Lark(g, parser='earley', lexer='dynamic')
# self.assertRaises(ParseError, l.parse, 'a')


def test_propagate_positions(self): def test_propagate_positions(self):
g = Lark("""start: a g = Lark("""start: a


Loading…
Cancel
Save