李昂
e31135ba90
!31 fix run context problem when call the callback function
...
* remove __pikaMain from StdTask
* support run arg from other context(file name space)
* format
* use def_context in callback
* supporting def_context, not ok
2022-06-21 03:29:29 +00:00
pikastech
f30dd75da1
fix mem_lack for StdData_List
2022-06-16 01:18:11 +08:00
pikastech
c02ffb51ab
fix double __init__ when 'import as'
2022-06-15 14:49:17 +08:00
李昂
5349a56656
!26 run the __init__ when init the meta obj
...
* run __init__ when init the meta_obj
* clean dead code
2022-06-15 06:20:34 +00:00
pikastech
77f1879180
add id() built-in
2022-06-14 12:06:56 +08:00
pikastech
8af6116b79
update PreCompiler
2022-06-14 11:23:45 +08:00
李昂
6acc0f9ecd
!25 support format output for print()
...
* test for format with tuple is ok
* 'format'%var is ok (tuple var is not ok)
* rename _cformat to cformat()
* optimize the memory usage of format_list
* add string-test.cpp
* cformat() is ok
* fix variable par load issue
* use test_common.h
* use test_common to simplify the gtest case
* Merge branch 'master' into dev
* fix float->double for bytecodegen
* update to /package
* Use double in C for float in python
2022-06-14 03:20:17 +00:00
pikastech
15b197e257
update preCompiler
2022-06-13 18:05:06 +08:00
李昂
5148412411
!24 support double in C Module
...
* Merge branch 'master' into dev
* fix float->double for bytecodegen
* update to /package
* Use double in C for float in python
2022-06-13 10:02:59 +00:00
李昂
b02672b130
!21 Support variable pars for print()
...
* update pre-compiler
* test passed for variable pars of print()
* variable pars is tested ok for print()
* skip arg_num check for variable
* support *val in the preCompiler
* add file
* Merge branch 'dev' of https://gitee.com/lyon1998/pikascript into dev
* fix warning
* both update ByteCodeGen
* use super instead of parent
* create PikaList C list struct
* use args inner the PikaStdData.List()
* use PikaDict in PikaStdData.Dict()
* support dict in c
* support dict in c
* clean Tinyobj
2022-06-11 14:56:51 +00:00
pikastech
3c8dcd578a
replace '\t' with ' ' simply
2022-06-09 09:34:33 +08:00
pikastech
65658e1df4
support \t in the CMoulde
2022-06-09 09:28:22 +08:00
pikastech
f07bad84d0
fix typo
2022-06-09 09:12:55 +08:00
pikastech
44963e8f6a
update preCompiler
2022-06-08 10:30:20 +08:00
pikastech
7e36373dbe
update preCompiler
2022-06-07 11:17:43 +08:00
pikastech
248432836b
support function define in the .pyi
2022-06-07 10:40:23 +08:00
pikastech
bce7f495c6
use analize_top_package()
2022-06-07 09:27:15 +08:00
pikastech
91e330d0d7
add bufsize for pikaCompiler in bytecodegen
2022-06-06 11:02:14 +08:00
pikastech
91dd0a048e
update win10 prec
2022-06-06 10:38:52 +08:00
pikastech
30209aff77
support return Object in CModule
2022-06-06 09:13:27 +08:00
lyon
59e4967218
update git script
2022-06-01 09:59:28 +08:00
lyon
7c1dced9aa
update
2022-06-01 09:59:27 +08:00
lyon
b3f1b0c7a0
update git scripts
2022-06-01 09:59:27 +08:00
lyon
65a4c6bf02
update precompiler
2022-05-31 08:22:59 +08:00
lyon
c08a077f27
remove pikascriptcore
2022-05-30 16:16:27 +08:00
lyon
bcf40725e8
add other file to pikaByteCodeGen
2022-05-30 16:04:12 +08:00
lyon
b42798c6c6
set syntex maximal as default
2022-05-30 15:23:20 +08:00
lyon
23b19a36ec
add config.h for bytecodegen
2022-05-30 14:47:19 +08:00
lyon
0adf506742
update preCompiler
2022-05-28 10:45:01 +08:00
lyon
31a343a6c3
upeate precompiler
2022-05-27 15:43:45 +08:00
lyon
9070131c62
update precompiler
2022-05-25 14:55:03 +08:00
lyon
281600804a
update precompiler
2022-05-24 21:01:17 +08:00
lyon
cce10b71cf
update preCompiler
2022-05-23 21:35:20 +08:00
lyon
f826f42295
adding writebytes and readbytes to stddevice
2022-05-23 16:54:56 +08:00
lyon
2716ee5d25
add .vimrc for docker
2022-05-22 02:06:49 +08:00
lyon
aaffdbaee1
fix 'from PikaObj import *' error info
2022-05-19 21:31:08 +08:00
lyon
602ed06f26
fix need two \n in *.py when preCompile bytecode
2022-05-19 19:14:40 +08:00
lyon
23d9ef9135
release new pikaPackage.exe
2022-05-16 21:26:16 +08:00
lyon
b145d307d5
update pikaPackage.exe
2022-05-16 21:24:08 +08:00
lyon
62011526ed
fix mv *.py and *.pyi not succece
2022-05-15 13:40:48 +08:00
lyon
93efd8b9f9
fix precompiler error in win because of auto transfer of '\n' and '\r\n'
2022-05-15 00:39:49 +08:00
lyon
bef82257ef
use 'rb''wb+' to avoid auto transfer form '\n' to '\r\n' in win
2022-05-15 00:38:25 +08:00
lyon
9e44992d33
precompiler ok in linux but not in win
2022-05-15 00:10:09 +08:00
lyon
dfe4d9b513
run compiling befor bind
2022-05-14 23:44:44 +08:00
lyon
61cdd46fb8
add speed for preCompiler build
2022-05-13 22:08:01 +08:00
lyon
ecf427a959
update msc-win10
2022-05-13 09:28:36 +08:00
lyon
e93fbb254f
run "main" module as default
2022-05-13 09:27:59 +08:00
lyon
29fe0a99c9
still link lib in pikascriptInit
2022-05-13 09:13:02 +08:00
lyon
e32c73d7b3
support import cmodule from pymodules
2022-05-13 09:04:54 +08:00
lyon
4f996b8393
update pikacompiler for win10
2022-05-11 20:03:30 +08:00