152 Commits

Author SHA1 Message Date
blueloveTH
dcc899a884 add bitwise op 2022-11-13 18:30:13 +08:00
blueloveTH
d352aca6af add __json__ 2022-11-13 15:33:18 +08:00
blueloveTH
385002035c some update 2022-11-13 13:58:31 +08:00
blueloveTH
e4f3c8f040 adopt yyw02's idea 2022-11-12 22:23:00 +08:00
blueloveTH
181e7eb298 add exports 2022-11-12 22:18:49 +08:00
blueloveTH
b15066f458 add hash support for tuple 2022-11-12 21:29:16 +08:00
blueloveTH
a5cea1e0a6 add pool optim 2022-11-12 21:07:53 +08:00
blueloveTH
05369804a9 some fix 2022-11-12 16:13:31 +08:00
blueloveTH
9256186cb1 fix recursion bug 2022-11-12 15:43:11 +08:00
blueloveTH
1cfa339ac2 backup 2022-11-12 14:35:14 +08:00
blueloveTH
9e7ef156c5 change Function to ptr 2022-11-12 00:11:16 +08:00
blueloveTH
7ecb8476f9 change _Func to & 2022-11-11 22:25:19 +08:00
blueloveTH
c75cf86270 fix a bug 2022-11-11 19:04:26 +08:00
blueloveTH
054a2a6873 add RecursionError 2022-11-11 18:57:21 +08:00
blueloveTH
ff4776f756 some fix 2022-11-11 00:30:03 +08:00
blueloveTH
bcfb6b64f3 rollback 2022-11-11 00:07:10 +08:00
blueloveTH
10b8afdeb2 fix context problem 2022-11-10 23:50:29 +08:00
blueloveTH
aa0c415f1d add __iter__ and __new__ for some types 2022-11-10 16:42:12 +08:00
blueloveTH
b52aa85f13 adjust builtins 2022-11-10 16:00:21 +08:00
blueloveTH
8267af74b5 Update vm.h 2022-11-10 15:54:48 +08:00
blueloveTH
a61315d1f7 add arg size check 2022-11-10 15:48:08 +08:00
blueloveTH
c9b58e2270 some fix 2022-11-10 15:18:21 +08:00
blueloveTH
47c6639627 make system safe
remove **kwargs

Update obj.h
2022-11-10 15:04:25 +08:00
blueloveTH
ad23d21297 add zero div error 2022-11-10 13:49:26 +08:00
blueloveTH
4842a108c3 fix error report 2022-11-10 13:46:05 +08:00
blueloveTH
498d2d2777 some fix 2022-11-10 00:57:45 +08:00
blueloveTH
252bf167b1 use int64 and float64 2022-11-10 00:54:15 +08:00
blueloveTH
65f6026e64 some fix 2022-11-09 23:16:20 +08:00
blueloveTH
661b2033f9 add _stderr 2022-11-09 22:48:18 +08:00
blueloveTH
21a0314b1a fix a bug of EVAL 2022-11-09 19:33:31 +08:00
blueloveTH
fa3e46bc46 improve error report 2022-11-09 19:19:22 +08:00
blueloveTH
24f3628b8d improve error report 2022-11-09 19:09:27 +08:00
blueloveTH
5c7f1e6dd8 adjust errors 2022-11-09 18:30:25 +08:00
blueloveTH
01bbda85ec some reconstruct 2022-11-09 17:32:12 +08:00
blueloveTH
f8df138b94 fix a bug of neg number
Update compiler.h
2022-11-09 16:09:40 +08:00
blueloveTH
299370a225 fix bugs of __new__
some renames
2022-11-09 14:30:35 +08:00
BLUELOVETH
a5b398d1f1
some renames 2022-11-09 00:26:41 +08:00
blueloveTH
2f12ace827 add num pool
Update vm.h
2022-11-08 23:05:14 +08:00
blueloveTH
bb651906c3 add listcomp support 2022-11-08 20:13:52 +08:00
blueloveTH
5761d0b69c make for loop support compound pointer
Update pocketpy.h
2022-11-08 17:41:34 +08:00
blueloveTH
d4d312fc36 impl f-string 2022-11-08 15:40:06 +08:00
blueloveTH
81516eafb5 add __repr__ 2022-11-07 22:19:00 +08:00
blueloveTH
630828f6e9 fix eq problem 2022-11-07 22:07:15 +08:00
blueloveTH
553d02592f impl *args and **kwargs (partially) 2022-11-07 21:41:58 +08:00
blueloveTH
b5aba376fe impl unpack 2022-11-07 18:42:27 +08:00
blueloveTH
c2fa538f44 add del impl 2022-11-07 16:58:43 +08:00
blueloveTH
9e426d3291 some fix 2022-11-07 16:42:47 +08:00
blueloveTH
4bdb268d93 some renames 2022-11-07 15:54:15 +08:00
blueloveTH
bf6383b5ee some renames 2022-11-07 15:12:39 +08:00
blueloveTH
c623646501 add pointer system 2022-11-07 15:04:41 +08:00