STRling 2.5.7__tar.gz → 2.5.8__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.
- {strling-2.5.7 → strling-2.5.8}/PKG-INFO +1 -1
- {strling-2.5.7 → strling-2.5.8}/pyproject.toml +1 -1
- strling-2.5.8/src/STRling/core/__init__.py +54 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling.egg-info/PKG-INFO +1 -1
- strling-2.5.7/src/STRling/core/__init__.py +0 -39
- {strling-2.5.7 → strling-2.5.8}/README.md +0 -0
- {strling-2.5.7 → strling-2.5.8}/setup.cfg +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/__init__.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/core/compiler.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/core/ir.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/core/nodes.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/core/parser.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/core/validator.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/emitters/__init__.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/emitters/pcre2.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/simply/__init__.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/simply/constructors.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/simply/lookarounds.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/simply/pattern.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/simply/sets.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling/simply/static.py +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling.egg-info/SOURCES.txt +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling.egg-info/dependency_links.txt +0 -0
- {strling-2.5.7 → strling-2.5.8}/src/STRling.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""
|
|
2
|
+
STRling Core Package - Parser, AST nodes, and core utilities
|
|
3
|
+
|
|
4
|
+
This package exposes the core components used by the STRling compiler and
|
|
5
|
+
bindings: the recursive-descent parser, the AST node definitions, and
|
|
6
|
+
related errors and helpers. The symbols re-exported here provide a
|
|
7
|
+
convenient, single import location for compiler internals and for tests.
|
|
8
|
+
|
|
9
|
+
Key exports:
|
|
10
|
+
- `parse`, `parse_to_artifact`, `ParseError` from the parser
|
|
11
|
+
- AST node classes (Flags, Node, Alt, Seq, Lit, Dot, Anchor, CharClass, ...)
|
|
12
|
+
|
|
13
|
+
The module mirrors the documentation style used across other `core` modules.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from STRling.core.parser import parse, parse_to_artifact, ParseError
|
|
17
|
+
from STRling.core.nodes import (
|
|
18
|
+
Flags,
|
|
19
|
+
Node,
|
|
20
|
+
Alt,
|
|
21
|
+
Seq,
|
|
22
|
+
Lit,
|
|
23
|
+
Dot,
|
|
24
|
+
Anchor,
|
|
25
|
+
CharClass,
|
|
26
|
+
ClassLiteral,
|
|
27
|
+
ClassRange,
|
|
28
|
+
ClassEscape,
|
|
29
|
+
Quant,
|
|
30
|
+
Group,
|
|
31
|
+
Backref,
|
|
32
|
+
Look,
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
__all__ = [
|
|
36
|
+
"parse",
|
|
37
|
+
"parse_to_artifact",
|
|
38
|
+
"ParseError",
|
|
39
|
+
"Flags",
|
|
40
|
+
"Node",
|
|
41
|
+
"Alt",
|
|
42
|
+
"Seq",
|
|
43
|
+
"Lit",
|
|
44
|
+
"Dot",
|
|
45
|
+
"Anchor",
|
|
46
|
+
"CharClass",
|
|
47
|
+
"ClassLiteral",
|
|
48
|
+
"ClassRange",
|
|
49
|
+
"ClassEscape",
|
|
50
|
+
"Quant",
|
|
51
|
+
"Group",
|
|
52
|
+
"Backref",
|
|
53
|
+
"Look",
|
|
54
|
+
]
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
from STRling.core.parser import parse, parse_to_artifact, ParseError
|
|
2
|
-
from STRling.core.nodes import (
|
|
3
|
-
Flags,
|
|
4
|
-
Node,
|
|
5
|
-
Alt,
|
|
6
|
-
Seq,
|
|
7
|
-
Lit,
|
|
8
|
-
Dot,
|
|
9
|
-
Anchor,
|
|
10
|
-
CharClass,
|
|
11
|
-
ClassLiteral,
|
|
12
|
-
ClassRange,
|
|
13
|
-
ClassEscape,
|
|
14
|
-
Quant,
|
|
15
|
-
Group,
|
|
16
|
-
Backref,
|
|
17
|
-
Look,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
__all__ = [
|
|
21
|
-
"parse",
|
|
22
|
-
"parse_to_artifact",
|
|
23
|
-
"ParseError",
|
|
24
|
-
"Flags",
|
|
25
|
-
"Node",
|
|
26
|
-
"Alt",
|
|
27
|
-
"Seq",
|
|
28
|
-
"Lit",
|
|
29
|
-
"Dot",
|
|
30
|
-
"Anchor",
|
|
31
|
-
"CharClass",
|
|
32
|
-
"ClassLiteral",
|
|
33
|
-
"ClassRange",
|
|
34
|
-
"ClassEscape",
|
|
35
|
-
"Quant",
|
|
36
|
-
"Group",
|
|
37
|
-
"Backref",
|
|
38
|
-
"Look",
|
|
39
|
-
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|