Преглед на файлове

Version 0.5.0 is out with lots of improvements

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.5.1
Erez Shinan преди 6 години
родител
ревизия
2d04acf227
променени са 4 файла, в които са добавени 10 реда и са изтрити 3 реда
  1. +1
    -1
      MANIFEST.in
  2. +1
    -1
      lark/__init__.py
  3. +4
    -1
      tests/__main__.py
  4. +4
    -0
      tests/test_nearley/test_nearley.py

+ 1
- 1
MANIFEST.in Целия файл

@@ -1 +1 @@
include README.md LICENSE docs/* examples/*.py tests/*.py examples/*.png
include README.md LICENSE docs/* examples/*.py examples/*.png examples/*.g tests/*.py tests/test_nearley/*.py tests/test_nearley/grammars/*

+ 1
- 1
lark/__init__.py Целия файл

@@ -4,4 +4,4 @@ from .lexer import UnexpectedInput, LexError
from .lark import Lark
from .utils import inline_args

__version__ = "0.4.1"
__version__ = "0.5.0"

+ 4
- 1
tests/__main__.py Целия файл

@@ -5,7 +5,10 @@ import logging

from .test_trees import TestTrees

from .test_nearley.test_nearley import TestNearley
try:
from .test_nearley.test_nearley import TestNearley
except ImportError:
pass

# from .test_selectors import TestSelectors
# from .test_grammars import TestPythonG, TestConfigG


+ 4
- 0
tests/test_nearley/test_nearley.py Целия файл

@@ -14,6 +14,10 @@ TEST_PATH = os.path.abspath(os.path.dirname(__file__))
NEARLEY_PATH = os.path.join(TEST_PATH, 'nearley')
BUILTIN_PATH = os.path.join(NEARLEY_PATH, 'builtin')

if not os.path.exists(NEARLEY_PATH):
print("Skipping Nearley tests!")
raise ImportError("Skipping Nearley tests!")

class TestNearley(unittest.TestCase):
def test_css(self):
fn = os.path.join(NEARLEY_PATH, 'examples/csscolor.ne')


Зареждане…
Отказ
Запис