jaclang 0.5.5__py3-none-any.whl → 0.5.6__py3-none-any.whl
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.
Potentially problematic release.
This version of jaclang might be problematic. Click here for more details.
- jaclang/__init__.py +2 -1
- jaclang/cli/cli.py +4 -2
- jaclang/cli/cmdreg.py +3 -0
- jaclang/compiler/__jac_gen__/jac_parser.py +2 -2
- jaclang/compiler/absyntree.py +3 -3
- jaclang/compiler/parser.py +78 -114
- jaclang/compiler/passes/main/pyast_gen_pass.py +67 -44
- jaclang/compiler/passes/tool/jac_formatter_pass.py +0 -4
- jaclang/core/construct.py +0 -6
- jaclang/plugin/default.py +14 -14
- jaclang/plugin/feature.py +11 -5
- jaclang/plugin/spec.py +10 -2
- {jaclang-0.5.5.dist-info → jaclang-0.5.6.dist-info}/METADATA +1 -1
- {jaclang-0.5.5.dist-info → jaclang-0.5.6.dist-info}/RECORD +17 -17
- {jaclang-0.5.5.dist-info → jaclang-0.5.6.dist-info}/WHEEL +0 -0
- {jaclang-0.5.5.dist-info → jaclang-0.5.6.dist-info}/entry_points.txt +0 -0
- {jaclang-0.5.5.dist-info → jaclang-0.5.6.dist-info}/top_level.txt +0 -0
jaclang/__init__.py
CHANGED
|
@@ -5,7 +5,7 @@ import sys
|
|
|
5
5
|
|
|
6
6
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "vendor"))
|
|
7
7
|
|
|
8
|
-
from jaclang.plugin.default import JacFeatureDefaults # noqa: E402
|
|
8
|
+
from jaclang.plugin.default import JacCmdDefaults, JacFeatureDefaults # noqa: E402
|
|
9
9
|
from jaclang.plugin.feature import JacFeature, pm # noqa: E402
|
|
10
10
|
from jaclang.vendor import lark # noqa: E402
|
|
11
11
|
from jaclang.vendor import mypy # noqa: E402
|
|
@@ -20,4 +20,5 @@ __all__ = [
|
|
|
20
20
|
"pluggy",
|
|
21
21
|
]
|
|
22
22
|
pm.register(JacFeatureDefaults)
|
|
23
|
+
pm.register(JacCmdDefaults)
|
|
23
24
|
pm.load_setuptools_entrypoints("jac")
|
jaclang/cli/cli.py
CHANGED
|
@@ -6,15 +6,17 @@ import shutil
|
|
|
6
6
|
from typing import Optional
|
|
7
7
|
|
|
8
8
|
from jaclang import jac_import
|
|
9
|
-
from jaclang.cli.cmdreg import
|
|
9
|
+
from jaclang.cli.cmdreg import CommandShell, cmd_registry
|
|
10
10
|
from jaclang.compiler.compile import jac_file_to_pass
|
|
11
11
|
from jaclang.compiler.constant import Constants
|
|
12
12
|
from jaclang.compiler.passes.main.schedules import py_code_gen_typed
|
|
13
13
|
from jaclang.compiler.passes.tool.schedules import format_pass
|
|
14
|
+
from jaclang.plugin.feature import JacCmd as Cmd
|
|
14
15
|
from jaclang.plugin.feature import JacFeature as Jac
|
|
15
16
|
from jaclang.utils.lang_tools import AstTool
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
|
|
19
|
+
Cmd.create_cmd()
|
|
18
20
|
|
|
19
21
|
|
|
20
22
|
@cmd_registry.register
|