llparse 0.2.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {llparse-0.2.0 → llparse-0.3.1}/PKG-INFO +3 -2
- {llparse-0.2.0 → llparse-0.3.1}/llparse/C_compiler.py +2 -6
- llparse-0.3.1/llparse/__init__.py +12 -0
- llparse-0.3.1/llparse/_tempita/__init__.py +1281 -0
- llparse-0.3.1/llparse/_tempita/__init__.pyi +147 -0
- llparse-0.3.1/llparse/_tempita/__main__.py +3 -0
- llparse-0.3.1/llparse/_tempita/_looper.py +169 -0
- llparse-0.3.1/llparse/_tempita/_looper.pyi +49 -0
- llparse-0.3.1/llparse/_tempita/compat3.py +46 -0
- llparse-0.3.1/llparse/capi_builder.py +632 -0
- {llparse-0.2.0 → llparse-0.3.1}/llparse/compilator.py +105 -71
- {llparse-0.2.0 → llparse-0.3.1}/llparse/dot.py +5 -6
- {llparse-0.2.0 → llparse-0.3.1}/llparse/frontend.py +22 -19
- {llparse-0.2.0 → llparse-0.3.1}/llparse/header.py +18 -27
- {llparse-0.2.0 → llparse-0.3.1}/llparse/llparse.py +47 -42
- {llparse-0.2.0 → llparse-0.3.1}/llparse/pybuilder/builder.py +4 -4
- {llparse-0.2.0 → llparse-0.3.1}/llparse/pybuilder/loopchecker.py +2 -2
- {llparse-0.2.0 → llparse-0.3.1}/llparse/pybuilder/main_code.py +33 -19
- {llparse-0.2.0 → llparse-0.3.1}/llparse/pybuilder/parsemap.py +20 -0
- llparse-0.3.1/llparse/pyfront/__init__.py +2 -0
- {llparse-0.2.0 → llparse-0.3.1}/llparse/pyfront/code.py +6 -6
- {llparse-0.2.0 → llparse-0.3.1}/llparse/pyfront/namespace.py +1 -5
- {llparse-0.2.0 → llparse-0.3.1}/llparse/pyfront/nodes.py +15 -18
- {llparse-0.2.0 → llparse-0.3.1}/llparse/pyfront/peephole.py +6 -5
- {llparse-0.2.0 → llparse-0.3.1}/llparse/spanalloc.py +6 -9
- {llparse-0.2.0 → llparse-0.3.1}/llparse/trie.py +2 -3
- {llparse-0.2.0 → llparse-0.3.1}/llparse.egg-info/PKG-INFO +3 -2
- {llparse-0.2.0 → llparse-0.3.1}/llparse.egg-info/SOURCES.txt +9 -2
- llparse-0.3.1/llparse.egg-info/requires.txt +3 -0
- llparse-0.3.1/pyproject.toml +21 -0
- llparse-0.3.1/tests/test_capi.py +121 -0
- {llparse-0.2.0 → llparse-0.3.1}/tests/test_compilator.py +1 -2
- {llparse-0.2.0 → llparse-0.3.1}/tests/test_frontend.py +7 -4
- llparse-0.2.0/llparse/__init__.py +0 -4
- llparse-0.2.0/llparse/cython_builder.py +0 -312
- llparse-0.2.0/llparse/pyfront/__init__.py +0 -3
- llparse-0.2.0/llparse/settings.py +0 -284
- llparse-0.2.0/pyproject.toml +0 -11
- {llparse-0.2.0 → llparse-0.3.1}/LICENSE +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/README.md +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/llparse/constants.py +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/llparse/debug.py +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/llparse/enumerator.py +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/llparse/errors.py +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/llparse/pybuilder/__init__.py +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/llparse/pyfront/implementation.py +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/llparse/pyfront/transform.py +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/llparse.egg-info/dependency_links.txt +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/llparse.egg-info/top_level.txt +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/setup.cfg +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/tests/test_loop_checker.py +0 -0
- {llparse-0.2.0 → llparse-0.3.1}/tests/test_span_allocator.py +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: llparse
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: A Parody of llparse written for writing C Parsers with Python
|
|
5
5
|
Author-email: Vizonex <VizonexBusiness@gmail.com>
|
|
6
|
-
Requires-Python: >=3.
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
License-File: LICENSE
|
|
9
|
+
Requires-Dist: typing_extensions; python_version < "3.13"
|
|
9
10
|
Dynamic: license-file
|
|
10
11
|
|
|
11
12
|
# pyllparse
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
from typing import Optional
|
|
2
|
-
|
|
3
1
|
from .compilator import Compilation, ICompilerOptions, Node
|
|
4
|
-
from .constants import
|
|
2
|
+
from .constants import ARG_STATE, ARG_POS, ARG_ENDPOS, VAR_MATCH, STATE_ERROR
|
|
5
3
|
from .frontend import IFrontendResult
|
|
6
4
|
|
|
7
5
|
|
|
8
6
|
class CCompiler:
|
|
9
7
|
"""The Final HeadPeice where the Main C-Code gets compiled to..."""
|
|
10
8
|
|
|
11
|
-
def __init__(
|
|
12
|
-
self, header: Optional[str] = None, debug: Optional[str] = None
|
|
13
|
-
) -> None:
|
|
9
|
+
def __init__(self, header: str | None = None, debug: str | None = None) -> None:
|
|
14
10
|
# NOTE Unlike in typescript llparse Containers are not Required since I'm using a different methoad to translate those parts...
|
|
15
11
|
self.options = ICompilerOptions(debug, header)
|
|
16
12
|
|