#! /usr/bin/env python
import unittest
-from parsimonious import ParseError
-from parser import compile
+from lark import ParseError
+from parser import parse
class TestParser(unittest.TestCase):
def _parse(self, input):
- return compile(input)
+ return parse(input)
def test_02_tag(self):
self.assertEqual(self._parse('xxx'), ('NAME', 'xxx'))