l0n0lc 0.5.0__py3-none-any.whl → 0.5.1__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.
- l0n0lc/jit.py +3 -3
- {l0n0lc-0.5.0.dist-info → l0n0lc-0.5.1.dist-info}/METADATA +1 -1
- {l0n0lc-0.5.0.dist-info → l0n0lc-0.5.1.dist-info}/RECORD +6 -6
- {l0n0lc-0.5.0.dist-info → l0n0lc-0.5.1.dist-info}/WHEEL +0 -0
- {l0n0lc-0.5.0.dist-info → l0n0lc-0.5.1.dist-info}/licenses/LICENSE +0 -0
- {l0n0lc-0.5.0.dist-info → l0n0lc-0.5.1.dist-info}/top_level.txt +0 -0
l0n0lc/jit.py
CHANGED
@@ -546,17 +546,17 @@ class py2cpp编译器(ast.NodeVisitor):
|
|
546
546
|
return self.cpp函数(*args)
|
547
547
|
|
548
548
|
|
549
|
-
def jit(jit编译器=
|
549
|
+
def jit(jit编译器=None, c编译器=None, 每次运行都重新编译: bool = False):
|
550
550
|
def 编译函数(fn: Callable):
|
551
551
|
|
552
552
|
# print(ast.dump(语法树, indent=' '))
|
553
|
-
c语言函数编译器 = jit编译器(fn)
|
553
|
+
c语言函数编译器 = jit编译器 or py2cpp编译器(fn)
|
554
554
|
库文件名 = c语言函数编译器.获取库文件名()
|
555
555
|
# 检测是否已存在
|
556
556
|
if 每次运行都重新编译 or not os.path.exists(f'{通用信息.工作文件夹地址}/{库文件名}'):
|
557
557
|
c语言函数编译器.编译()
|
558
558
|
c语言函数编译器.将代码保存到文件()
|
559
|
-
编译器 = cpp编译器()
|
559
|
+
编译器 = c编译器 or cpp编译器()
|
560
560
|
编译器.include目录列表 = list(c语言函数编译器.include目录)
|
561
561
|
编译器.库目录列表 = list(c语言函数编译器.库目录)
|
562
562
|
编译器.链接库 = list(c语言函数编译器.链接库列表)
|
@@ -2,11 +2,11 @@ l0n0lc/StdList.py,sha256=fA6sWAfW2JgDUhQDK2Hlx_PPuSdLwTcCTk5aha4zA-Q,863
|
|
2
2
|
l0n0lc/StdMap.py,sha256=TIVKqhT078cjLIM0Zlq-TwGFSy-KwOyJe00BLFPVxr8,735
|
3
3
|
l0n0lc/__init__.py,sha256=fUC6TMeN_fEL7HDazrBEdoWOQkXi5uSGZb7LZj6juog,137
|
4
4
|
l0n0lc/c基础处理.py,sha256=ZJEMxK1MyRAgbUnpfUUZC0ZHj61RCD6UMlhVssCyiCE,8201
|
5
|
-
l0n0lc/jit.py,sha256=
|
5
|
+
l0n0lc/jit.py,sha256=N4R5KDDhRnn0eAmNI_8wOWgiCSdi3D8CP_RogXbj4as,22730
|
6
6
|
l0n0lc/编译.py,sha256=f1ugdTpnKcDOprcGu2Q5zMm_sYdxWMphBeo4ZL-cW3o,2016
|
7
7
|
l0n0lc/通用.py,sha256=O_Y4bbW1WzHCJkibxAy9WGACv-aEZJLG-fEeVBcAbBQ,3649
|
8
|
-
l0n0lc-0.5.
|
9
|
-
l0n0lc-0.5.
|
10
|
-
l0n0lc-0.5.
|
11
|
-
l0n0lc-0.5.
|
12
|
-
l0n0lc-0.5.
|
8
|
+
l0n0lc-0.5.1.dist-info/licenses/LICENSE,sha256=1L-MAjulZ3kpbYwsJtlXpDVITRxykna2Ecg_521YfkA,1093
|
9
|
+
l0n0lc-0.5.1.dist-info/METADATA,sha256=soTH6jJhHdlThj4Ngiapf85P-25SD4OYRfBiaCEWxKA,2429
|
10
|
+
l0n0lc-0.5.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
+
l0n0lc-0.5.1.dist-info/top_level.txt,sha256=Q21D_eEY_-xgRUPwATGp9YDKSBO4w_7MI2MYxQI1aT4,7
|
12
|
+
l0n0lc-0.5.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|