34 Commits

Author SHA1 Message Date
pikastech
b65680672e keep the keep 2022-06-26 22:33:21 +08:00
pikastech
1630664996 fix ~-1 != 0 2022-06-26 22:26:38 +08:00
pikastech
64573955d1 add keep 2022-06-26 15:58:43 +08:00
李昂
b20b5f1bb5 !37 support <try> <except> <raise> keywords, not support parameter yet
* restore __pika_ooc.h
* raise in cmodule and py function is ok
* add trydef1.py
* add PIKA_ASSERT_ENABLE config, add try_info
2022-06-26 07:30:52 +00:00
pikastech
1473da29ec keep folder 2022-06-24 19:51:34 +08:00
pikastech
865290df74 support len() for object and __len__().
* list, dict, dict_keys is ok
2022-06-24 18:18:06 +08:00
pikastech
410071a200 keep folder 2022-06-24 16:34:27 +08:00
pikastech
f43e0227a1 remove lib and api of bytecodegen 2022-06-24 16:23:44 +08:00
pikastech
3e371e9e57 fix a[1] = 1 not work inner function() 2022-06-24 16:08:27 +08:00
李昂
e6a33c058e !34 Support __str__() for PikaStdData.List(),PikaStdData.Dict(),PikaStdData.dict_keys(),
* print list as '[x,x,x]'
* support __str__ for Dict
* support __str__ for dict_keys()
2022-06-24 03:30:56 +00:00
pikastech
a3e318efd5 update fix tools/pikascript/pikascript-api 2022-06-23 17:53:53 +08:00
pikastech
ff16099da5 test iter() for keys is ok 2022-06-23 17:46:50 +08:00
pikastech
fca634f3cc use -> List 2022-06-21 17:49:18 +08:00
pikastech
1087ed0674 support split() for String Class 2022-06-21 17:42:03 +08:00
李昂
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
李昂
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
李昂
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
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
23d9ef9135 release new pikaPackage.exe 2022-05-16 21:26:16 +08:00
lyon
833036d435 update pikaPackage.exe 2022-05-05 11:04:09 +08:00
lyon
48612b9360 remove pikaPacage.exe 2022-05-05 10:29:23 +08:00
lyon
1dcf2ceaeb test pikaCompileFile is ok 2022-05-04 20:54:00 +08:00
lyon
be465e8a31 relase v1.7.1 and update fit arm2d with v0.3.4 2022-04-26 16:55:31 +08:00
lyon
7435342e98 release v1.7.0 2022-04-22 13:07:55 +08:00
lyon
665eb2eac8 fix ac5 warnings, update bytecodegen core version 2022-04-22 10:25:00 +08:00
lyon1998
9c8cf7cb50 update v1.5.3 from v1.5.2 2022-03-25 21:33:51 +08:00
lyon
4ddb60726a update bytecode_gen to v1.5.2 2022-03-24 18:05:27 +08:00
pikastech
87ed7ce760 rename BiteCodeCompiler to ByteCodeGen 2021-11-28 21:31:04 +08:00