61 Commits

Author SHA1 Message Date
blueloveTH
49ee693d40 optimize for empty function 2024-04-11 01:31:45 +08:00
blueloveTH
e86baa2e2f add optimized opcodes for FOR_ITERs 2024-03-29 01:29:32 +08:00
blueloveTH
37453a8502 some fix 2024-03-16 14:40:01 +08:00
blueloveTH
90a9a404e2 some refactor 2024-02-25 13:06:41 +08:00
blueloveTH
51a3c93f69 some refactor 2024-02-25 12:39:09 +08:00
blueloveTH
cbe8945d37 some update 2024-02-19 11:42:18 +08:00
blueloveTH
19a2b8950b replace std::vector<Expr_> with small_vector 2024-02-18 21:31:27 +08:00
blueloveTH
5983dd2ae6 add unique_ptr_64 2024-02-18 20:49:26 +08:00
blueloveTH
97c923e514 use pod_vector for small vectors 2024-02-18 17:51:35 +08:00
blueloveTH
1558e5b40f fix a bug 2024-02-18 00:44:57 +08:00
blueloveTH
6681efe770 Update compiler.cpp 2024-02-07 17:45:19 +08:00
blueloveTH
4f316d1938 fix a bug 2024-02-07 17:32:34 +08:00
blueloveTH
ac32dfdb2d record start_line & end_line 2024-02-07 17:07:55 +08:00
blueloveTH
2c8a8732f0 fix docs with pocketpy 2024-02-05 16:15:00 +08:00
blueloveTH
b65cf89d22 fix https://github.com/pocketpy/pocketpy/issues/171 2024-02-04 19:30:51 +08:00
blueloveTH
7bd99279e5 fix https://github.com/pocketpy/pocketpy/issues/196 2024-02-04 17:53:31 +08:00
blueloveTH
1a9e9dc752 change source to std::string_view 2024-02-01 13:28:16 +08:00
blueloveTH
5ffb446d4a fix https://github.com/pocketpy/pocketpy/issues/194 2024-01-26 12:07:33 +08:00
blueloveTH
88c0102e79 fix https://github.com/blueloveTH/pocketpy/issues/192 2024-01-19 20:31:12 +08:00
blueloveTH
d64863fd43 some refactor 2024-01-19 20:02:23 +08:00
blueloveTH
19b2eda72a ... 2024-01-19 18:29:01 +08:00
blueloveTH
8079b82813 ... 2024-01-19 18:09:42 +08:00
blueloveTH
664fc07dcd fix https://github.com/blueloveTH/pocketpy/issues/187 2024-01-14 22:59:08 +08:00
blueloveTH
2cd22d40c5 some optimize 2024-01-07 01:49:33 +08:00
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