diff --git a/makefile b/makefile deleted file mode 100644 index 330c2f7..0000000 --- a/makefile +++ /dev/null @@ -1,3 +0,0 @@ -.PHONY: test -test: - pytest diff --git a/pdm.lock b/pdm.lock deleted file mode 100644 index b80bf6d..0000000 --- a/pdm.lock +++ /dev/null @@ -1,70 +0,0 @@ -# This file is @generated by PDM. -# It is not intended for manual editing. - -[metadata] -groups = ["default", "dev"] -strategy = ["cross_platform", "inherit_metadata"] -lock_version = "4.4.1" -content_hash = "sha256:143b06c001132ba589a47b2b3a498dd54f4840d95d216c794068089fcea48d4d" - -[[package]] -name = "colorama" -version = "0.4.6" -requires_python = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" -summary = "Cross-platform colored terminal text." -groups = ["dev"] -marker = "sys_platform == \"win32\"" -files = [ - {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, - {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, -] - -[[package]] -name = "iniconfig" -version = "2.0.0" -requires_python = ">=3.7" -summary = "brain-dead simple config-ini parsing" -groups = ["dev"] -files = [ - {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, - {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, -] - -[[package]] -name = "packaging" -version = "24.1" -requires_python = ">=3.8" -summary = "Core utilities for Python packages" -groups = ["dev"] -files = [ - {file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"}, - {file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"}, -] - -[[package]] -name = "pluggy" -version = "1.5.0" -requires_python = ">=3.8" -summary = "plugin and hook calling mechanisms for python" -groups = ["dev"] -files = [ - {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, - {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, -] - -[[package]] -name = "pytest" -version = "8.2.2" -requires_python = ">=3.8" -summary = "pytest: simple powerful testing with Python" -groups = ["dev"] -dependencies = [ - "colorama; sys_platform == \"win32\"", - "iniconfig", - "packaging", - "pluggy<2.0,>=1.5", -] -files = [ - {file = "pytest-8.2.2-py3-none-any.whl", hash = "sha256:c434598117762e2bd304e526244f67bf66bbd7b5d6cf22138be51ff661980343"}, - {file = "pytest-8.2.2.tar.gz", hash = "sha256:de4bb8104e201939ccdc688b27a89a7be2079b22e2bd2b07f806b6ba71117977"}, -] diff --git a/pyproject.toml b/pyproject.toml index befeb12..7cf2884 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,27 +2,12 @@ name = "lrparsers" descrption = "a small LR parser generator library" authors = [ - {name = "John Doty", email = "john@d0ty.me"}, + {name = "John Doty", email = "john@d0ty.me"}, ] classifiers = [ "Private :: Do Not Upload", # Probably. "License :: OSI Approved :: MIT License", ] -version = "0.1.0" -dependencies = [] -requires-python = ">=3.12" -readme = "README.md" [tool.black] -line-length=100 - -[tool.pdm] -distribution = true - -[tool.pdm.dev-dependencies] -dev = [ - "pytest>=8.2.2", -] -[build-system] -requires = ["pdm-backend"] -build-backend = "pdm.backend" +line-length=100 \ No newline at end of file diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_grammar.py b/tests/test_grammar.py deleted file mode 100644 index 3845990..0000000 --- a/tests/test_grammar.py +++ /dev/null @@ -1,18 +0,0 @@ -import parser -import pytest - - -def test_conflicting_names(): - """Terminals and nonterminals can have the same name.""" - - IDENTIFIER = parser.Terminal("Identifier") - - class TestGrammar(parser.Grammar): - start = "Identifier" - - @parser.rule("Identifier") - def identifier(self): - return IDENTIFIER - - with pytest.raises(ValueError): - TestGrammar().build_table()