jaclang 0.7.19__py3-none-any.whl → 0.7.20__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/compiler/absyntree.py +1 -1
- jaclang/compiler/parser.py +1 -1
- jaclang/compiler/passes/main/__init__.py +1 -1
- jaclang/compiler/passes/main/fuse_typeinfo_pass.py +50 -13
- jaclang/compiler/passes/main/import_pass.py +27 -0
- jaclang/compiler/passes/main/sym_tab_build_pass.py +0 -18
- jaclang/compiler/passes/main/tests/fixtures/mod_type_assign.jac +7 -0
- jaclang/compiler/passes/main/tests/test_type_check_pass.py +1 -1
- jaclang/compiler/passes/main/tests/test_typeinfo_pass.py +23 -1
- jaclang/compiler/passes/tool/jac_formatter_pass.py +10 -0
- jaclang/compiler/passes/tool/tests/fixtures/general_format_checks/line_spacing.jac +3 -1
- jaclang/compiler/semtable.py +4 -4
- jaclang/compiler/symtable.py +5 -0
- jaclang/langserve/engine.py +64 -6
- jaclang/langserve/tests/test_server.py +1 -1
- jaclang/langserve/utils.py +0 -113
- jaclang/plugin/tests/test_jaseci.py +23 -4
- jaclang/runtimelib/importer.py +2 -0
- jaclang/runtimelib/memory.py +1 -1
- jaclang/stubs/jaclang/__init__.pyi +5 -0
- jaclang/stubs/jaclang/cli/__init__.pyi +0 -0
- jaclang/stubs/jaclang/cli/cli.pyi +58 -0
- jaclang/stubs/jaclang/cli/cmdreg.pyi +32 -0
- jaclang/stubs/jaclang/compiler/__init__.pyi +6 -0
- jaclang/stubs/jaclang/compiler/absyntree.pyi +1248 -0
- jaclang/stubs/jaclang/compiler/codeloc.pyi +45 -0
- jaclang/stubs/jaclang/compiler/compile.pyi +29 -0
- jaclang/stubs/jaclang/compiler/constant.pyi +287 -0
- jaclang/stubs/jaclang/compiler/generated/__init__.pyi +0 -0
- jaclang/stubs/jaclang/compiler/generated/jac_parser.pyi +898 -0
- jaclang/stubs/jaclang/compiler/parser.pyi +266 -0
- jaclang/stubs/jaclang/compiler/passes/__init__.pyi +3 -0
- jaclang/stubs/jaclang/compiler/passes/ir_pass.pyi +40 -0
- jaclang/stubs/jaclang/compiler/passes/main/__init__.pyi +27 -0
- jaclang/stubs/jaclang/compiler/passes/main/access_modifier_pass.pyi +23 -0
- jaclang/stubs/jaclang/compiler/passes/main/def_impl_match_pass.pyi +12 -0
- jaclang/stubs/jaclang/compiler/passes/main/def_use_pass.pyi +31 -0
- jaclang/stubs/jaclang/compiler/passes/main/fuse_typeinfo_pass.pyi +66 -0
- jaclang/stubs/jaclang/compiler/passes/main/import_pass.pyi +34 -0
- jaclang/stubs/jaclang/compiler/passes/main/pyast_gen_pass.pyi +178 -0
- jaclang/stubs/jaclang/compiler/passes/main/pyast_load_pass.pyi +135 -0
- jaclang/stubs/jaclang/compiler/passes/main/pybc_gen_pass.pyi +6 -0
- jaclang/stubs/jaclang/compiler/passes/main/pyjac_ast_link_pass.pyi +22 -0
- jaclang/stubs/jaclang/compiler/passes/main/pyout_pass.pyi +9 -0
- jaclang/stubs/jaclang/compiler/passes/main/registry_pass.pyi +15 -0
- jaclang/stubs/jaclang/compiler/passes/main/schedules.pyi +19 -0
- jaclang/stubs/jaclang/compiler/passes/main/sub_node_tab_pass.pyi +6 -0
- jaclang/stubs/jaclang/compiler/passes/main/sym_tab_build_pass.pyi +147 -0
- jaclang/stubs/jaclang/compiler/passes/main/type_check_pass.pyi +11 -0
- jaclang/stubs/jaclang/compiler/passes/tool/__init__.pyi +4 -0
- jaclang/stubs/jaclang/compiler/passes/tool/fuse_comments_pass.pyi +12 -0
- jaclang/stubs/jaclang/compiler/passes/tool/jac_formatter_pass.pyi +134 -0
- jaclang/stubs/jaclang/compiler/passes/tool/schedules.pyi +11 -0
- jaclang/stubs/jaclang/compiler/passes/transform.pyi +28 -0
- jaclang/stubs/jaclang/compiler/passes/utils/__init__.pyi +0 -0
- jaclang/stubs/jaclang/compiler/passes/utils/mypy_ast_build.pyi +151 -0
- jaclang/stubs/jaclang/compiler/semtable.pyi +35 -0
- jaclang/stubs/jaclang/compiler/symtable.pyi +65 -0
- jaclang/stubs/jaclang/langserve/__init__.pyi +0 -0
- jaclang/stubs/jaclang/langserve/engine.pyi +73 -0
- jaclang/stubs/jaclang/langserve/sem_manager.pyi +89 -0
- jaclang/stubs/jaclang/langserve/server.pyi +38 -0
- jaclang/stubs/jaclang/langserve/utils.pyi +55 -0
- jaclang/stubs/jaclang/plugin/__init__.pyi +3 -0
- jaclang/stubs/jaclang/plugin/builtin.pyi +12 -0
- jaclang/stubs/jaclang/plugin/default.pyi +202 -0
- jaclang/stubs/jaclang/plugin/feature.pyi +176 -0
- jaclang/stubs/jaclang/plugin/spec.pyi +181 -0
- jaclang/stubs/jaclang/runtimelib/__init__.pyi +0 -0
- jaclang/stubs/jaclang/runtimelib/architype.pyi +133 -0
- jaclang/stubs/jaclang/runtimelib/constructs.pyi +41 -0
- jaclang/stubs/jaclang/runtimelib/context.pyi +48 -0
- jaclang/stubs/jaclang/runtimelib/importer.pyi +104 -0
- jaclang/stubs/jaclang/runtimelib/machine.pyi +6 -0
- jaclang/stubs/jaclang/runtimelib/memory.pyi +26 -0
- jaclang/stubs/jaclang/runtimelib/utils.pyi +35 -0
- jaclang/stubs/jaclang/settings.pyi +35 -0
- jaclang/stubs/jaclang/utils/__init__.pyi +0 -0
- jaclang/stubs/jaclang/utils/helpers.pyi +18 -0
- jaclang/stubs/jaclang/utils/lang_tools.pyi +43 -0
- jaclang/stubs/jaclang/utils/log.pyi +3 -0
- jaclang/stubs/jaclang/utils/treeprinter.pyi +47 -0
- jaclang/tests/fixtures/builtins_test.jac +16 -0
- jaclang/tests/fixtures/match_multi_ex.jac +12 -0
- jaclang/tests/test_cli.py +29 -2
- jaclang/tests/test_language.py +10 -0
- jaclang/utils/treeprinter.py +1 -1
- {jaclang-0.7.19.dist-info → jaclang-0.7.20.dist-info}/METADATA +1 -1
- {jaclang-0.7.19.dist-info → jaclang-0.7.20.dist-info}/RECORD +91 -25
- {jaclang-0.7.19.dist-info → jaclang-0.7.20.dist-info}/WHEEL +0 -0
- {jaclang-0.7.19.dist-info → jaclang-0.7.20.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
from jaclang import jac_import as jac_import
|
|
2
|
+
from jaclang.cli.cmdreg import (
|
|
3
|
+
CommandShell as CommandShell,
|
|
4
|
+
cmd_registry as cmd_registry,
|
|
5
|
+
)
|
|
6
|
+
from jaclang.compiler.compile import jac_file_to_pass as jac_file_to_pass
|
|
7
|
+
from jaclang.compiler.constant import Constants as Constants
|
|
8
|
+
from jaclang.compiler.passes.main.pyast_load_pass import (
|
|
9
|
+
PyastBuildPass as PyastBuildPass,
|
|
10
|
+
)
|
|
11
|
+
from jaclang.compiler.passes.main.schedules import (
|
|
12
|
+
py_code_gen_typed as py_code_gen_typed,
|
|
13
|
+
)
|
|
14
|
+
from jaclang.compiler.passes.tool.schedules import format_pass as format_pass
|
|
15
|
+
from jaclang.plugin.builtin import dotgen as dotgen
|
|
16
|
+
from jaclang.runtimelib.constructs import Architype as Architype
|
|
17
|
+
from jaclang.utils.lang_tools import AstTool as AstTool
|
|
18
|
+
|
|
19
|
+
def format(path: str, outfile: str = "", debug: bool = False) -> None: ...
|
|
20
|
+
def run(
|
|
21
|
+
filename: str,
|
|
22
|
+
session: str = "",
|
|
23
|
+
main: bool = True,
|
|
24
|
+
cache: bool = True,
|
|
25
|
+
walker: str = "",
|
|
26
|
+
node: str = "",
|
|
27
|
+
) -> None: ...
|
|
28
|
+
def get_object(id: str, session: str = "") -> dict: ...
|
|
29
|
+
def build(filename: str) -> None: ...
|
|
30
|
+
def check(filename: str, print_errs: bool = True) -> None: ...
|
|
31
|
+
def lsp() -> None: ...
|
|
32
|
+
def enter(filename: str, entrypoint: str, args: list) -> None: ...
|
|
33
|
+
def test(
|
|
34
|
+
filepath: str,
|
|
35
|
+
filter: str = "",
|
|
36
|
+
xit: bool = False,
|
|
37
|
+
maxfail: int = None,
|
|
38
|
+
directory: str = "",
|
|
39
|
+
verbose: bool = False,
|
|
40
|
+
) -> None: ...
|
|
41
|
+
def tool(tool: str, args: list | None = None) -> None: ...
|
|
42
|
+
def clean() -> None: ...
|
|
43
|
+
def debug(filename: str, main: bool = True, cache: bool = False) -> None: ...
|
|
44
|
+
def dot(
|
|
45
|
+
filename: str,
|
|
46
|
+
session: str = "",
|
|
47
|
+
initial: str = "",
|
|
48
|
+
depth: int = -1,
|
|
49
|
+
traverse: bool = False,
|
|
50
|
+
connection: list[str] = [],
|
|
51
|
+
bfs: bool = False,
|
|
52
|
+
edge_limit: int = 512,
|
|
53
|
+
node_limit: int = 512,
|
|
54
|
+
saveto: str = "",
|
|
55
|
+
) -> None: ...
|
|
56
|
+
def py2jac(filename: str) -> None: ...
|
|
57
|
+
def jac2py(filename: str) -> None: ...
|
|
58
|
+
def start_cli() -> None: ...
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
import cmd
|
|
3
|
+
import inspect
|
|
4
|
+
from _typeshed import Incomplete
|
|
5
|
+
from typing import Callable
|
|
6
|
+
|
|
7
|
+
class Command:
|
|
8
|
+
func: Callable
|
|
9
|
+
sig: inspect.Signature
|
|
10
|
+
def __init__(self, func: Callable) -> None: ...
|
|
11
|
+
def call(self, *args: list, **kwargs: dict) -> str: ...
|
|
12
|
+
|
|
13
|
+
class CommandRegistry:
|
|
14
|
+
registry: dict[str, Command]
|
|
15
|
+
sub_parsers: argparse._SubParsersAction
|
|
16
|
+
parser: argparse.ArgumentParser
|
|
17
|
+
args: argparse.Namespace
|
|
18
|
+
def __init__(self) -> None: ...
|
|
19
|
+
def register(self, func: Callable) -> Callable: ...
|
|
20
|
+
def get(self, name: str) -> Command | None: ...
|
|
21
|
+
def get_all_commands(self) -> dict: ...
|
|
22
|
+
|
|
23
|
+
cmd_registry: Incomplete
|
|
24
|
+
|
|
25
|
+
class CommandShell(cmd.Cmd):
|
|
26
|
+
intro: str
|
|
27
|
+
prompt: str
|
|
28
|
+
cmd_reg: CommandRegistry
|
|
29
|
+
def __init__(self, cmd_reg: CommandRegistry) -> None: ...
|
|
30
|
+
def do_exit(self, arg: list) -> bool: ...
|
|
31
|
+
def default(self, line: str) -> None: ...
|
|
32
|
+
def do_help(self, arg: str) -> None: ...
|