37 Commits

Author SHA1 Message Date
blueloveTH
1eb3ba3077 add support for try..finally 2024-01-06 15:51:12 +08:00
blueloveTH
02a25de8e5 warn return with arg inside generator function 2024-01-05 22:02:23 +08:00
blueloveTH
315cbe5d1a rename FATAL_ERROR to PK_FATAL_ERROR 2024-01-04 12:37:28 +08:00
blueloveTH
f7c1c956f4 ... 2024-01-02 20:41:54 +08:00
blueloveTH
c6ec028730 support real exceptions 2024-01-02 16:42:08 +08:00
blueloveTH
1e178caf6e add cmath module 2023-12-30 13:57:51 +08:00
blueloveTH
475bce9999 add @dataclass 2023-12-21 23:09:23 +08:00
blueloveTH
d1080aab1f ... 2023-12-21 00:09:44 +08:00
blueloveTH
63b0a592bd some fix 2023-12-19 14:44:09 +08:00
blueloveTH
b23eb63aad fix kwargs bug 2023-12-19 14:06:20 +08:00
blueloveTH
a28afb60be fix a parser bug 2023-12-18 20:29:12 +08:00
blueloveTH
f6942e0caf experimental support for try..except..as 2023-12-04 18:09:21 +08:00
blueloveTH
74e31b36ed allow complex assignment in class definition 2023-11-30 17:53:11 +08:00
blueloveTH
901f702f00 rename emit into emit_ to make QT happy 2023-10-16 13:56:07 +08:00
blueloveTH
f3acafe44c rename METHOD() macro 2023-10-16 10:57:06 +08:00
blueloveTH
5e3572b32c replace std::stringstream with SStream 2023-10-15 21:58:33 +08:00
blueloveTH
cdcdded9a3 some fix 2023-10-15 16:47:53 +08:00
blueloveTH
227e76e3e4 cjson cleanup 2023-10-15 15:00:25 +08:00
blueloveTH
eb1f8f0a4f some more optimize 2023-10-14 15:18:45 +08:00
blueloveTH
814ce3e465 add fastpath for simple calls 2023-10-14 00:29:03 +08:00
blueloveTH
eb5be9ba41 import can be used in local scope now 2023-10-12 01:02:46 +08:00
blueloveTH
0caa14172d fix ++ for global names 2023-10-08 20:55:31 +08:00
blueloveTH
e26f389182 fix assert message won't be evaluated on true cond 2023-10-08 20:09:22 +08:00
blueloveTH
c0866022fb fix a compiler bug of [] 2023-09-24 19:35:40 +08:00
blueloveTH
dd6e8fab9b reimpl goto 2023-09-24 13:47:47 +08:00
blueloveTH
bf6aaa66fb support pure type hints 2023-09-07 23:07:04 +08:00
BLUELOVETH
8b47a2001f support complex import 2023-08-28 12:43:43 +08:00
blueloveTH
0c80a626ba refactor importer 2023-08-28 04:05:24 +08:00
blueloveTH
e21005e5d2 add Str::split 2023-08-28 00:34:13 +08:00
BLUELOVETH
449c0c36f9 support for..else and while..else 2023-08-18 16:17:01 +08:00
blueloveTH
b0361b801a Revert "..."
This reverts commit d9b83fbeb70ed75079a538b77887269ed0cb58ef.
2023-07-22 22:44:27 +08:00
blueloveTH
d9b83fbeb7 ...
...
2023-07-22 22:44:23 +08:00
BLUELOVETH
6ee0a169d0 ... 2023-07-19 16:02:47 +08:00
blueloveTH
9732828e85 support bytes literal, e.g. b'\xff\12' 2023-07-16 23:39:04 +08:00
BLUELOVETH
d5fc2c8686 add ~ operator 2023-07-07 18:43:50 +08:00
BLUELOVETH
b520abf7a2 fix: super class can be an expression 2023-07-07 18:15:58 +08:00
blueloveTH
656d1d7291 ... 2023-07-02 03:52:44 +08:00