|
|
@@ -448,6 +448,12 @@ def _make_parser_test(LEXER, PARSER): |
|
|
|
""") |
|
|
|
g.parse(u'\xa3\u0101\u00a3\u0203\n') |
|
|
|
|
|
|
|
def test_hex_escape(self): |
|
|
|
g = _Lark(r"""start: A B |
|
|
|
A: "\x01" |
|
|
|
B: /\x02/ |
|
|
|
""") |
|
|
|
g.parse('\x01\x02') |
|
|
|
|
|
|
|
@unittest.skipIf(PARSER == 'cyk', "Takes forever") |
|
|
|
def test_stack_for_ebnf(self): |
|
|
@@ -1363,4 +1369,3 @@ for _LEXER in ('dynamic', 'dynamic_complete'): |
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
unittest.main() |
|
|
|
|