1315 Commits

Author SHA1 Message Date
blueloveTH
5f6c7f3f23 Create cjson.pyi 2023-10-15 23:57:13 +08:00
blueloveTH
020bd7bd26 ... 2023-10-15 22:34:43 +08:00
blueloveTH
57e1ec1637 ... 2023-10-15 22:25:04 +08:00
blueloveTH
ab53927019 ... 2023-10-15 22:14:34 +08:00
blueloveTH
f41368afbb ... 2023-10-15 22:08:41 +08:00
blueloveTH
5e3572b32c replace std::stringstream with SStream 2023-10-15 21:58:33 +08:00
blueloveTH
e4b6d566a7 add SStream 2023-10-15 21:36:30 +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
Mahbub Alam
2950d88545
Add cjson module (#151)
* Add cjson module

* Create structure for cjson module

* Implemenet loads function

* Convert cJsonBool to python boolean

* Implement dumps function

* Convert json bool and null to python Bool and None

* necessary changes of project structure

* Update amalgamate.py

* Support non-dictionary json objects (list, tuple, string, number, bool, null)

* Fix tests

* fix CI

* fix CI

* Convert python to cJson and then to string

* Delete cJSON object after use

---------

Co-authored-by: Mahbub Alam <alam.mahbub214@gmail.com>
Co-authored-by: blueloveTH <blueloveth@foxmail.com>
2023-10-15 13:32:20 +08:00
blueloveTH
53e4043e0e fix a bug of _class in Function 2023-10-15 04:44:10 +08:00
blueloveTH
01fecaa352 fix a bug 2023-10-15 03:33:03 +08:00
blueloveTH
0157025097 disable code serialization impl 2023-10-14 15:25:07 +08:00
blueloveTH
02798c5b00 ... 2023-10-14 15:22:16 +08:00
blueloveTH
1afef9dcb9 reduce bytecode size 2023-10-14 14:30:15 +08:00
blueloveTH
ffde186dfa change opcode to uint8_t 2023-10-14 12:43:10 +08:00
blueloveTH
6c821f35ea ... 2023-10-14 01:07:49 +08:00
blueloveTH
3cae7e6809 inline gc check 2023-10-14 00:50:31 +08:00
blueloveTH
814ce3e465 add fastpath for simple calls 2023-10-14 00:29:03 +08:00
blueloveTH
2031dadc8e some update 2023-10-13 23:39:19 +08:00
blueloveTH
47589b9e9a ... 2023-10-13 13:25:47 +08:00
blueloveTH
5ecd59f11c ... 2023-10-13 13:12:05 +08:00
blueloveTH
d30b1de4c9 ... 2023-10-13 13:02:24 +08:00
blueloveTH
a5b7a0d1ae ... 2023-10-13 12:59:43 +08:00
blueloveTH
92e4416c4e some refactor 2023-10-13 12:46:41 +08:00
blueloveTH
9f3d15ca51 ... 2023-10-13 12:18:33 +08:00
blueloveTH
67a0ecae92 ... 2023-10-13 11:46:42 +08:00
blueloveTH
f766be85aa ... 2023-10-13 11:07:43 +08:00
blueloveTH
535c1d39e0 ... 2023-10-13 11:01:48 +08:00
blueloveTH
163a66fb86 ... 2023-10-13 10:53:42 +08:00
blueloveTH
cbd6d89730 ... 2023-10-13 01:08:22 +08:00
blueloveTH
782a79f847 ... 2023-10-13 00:43:26 +08:00
blueloveTH
38c0eb6bea ... 2023-10-12 22:17:26 +08:00
blueloveTH
17fd51b967 ... 2023-10-12 21:50:41 +08:00
blueloveTH
9164fc8e2f Update namedict.h 2023-10-12 21:33:37 +08:00
blueloveTH
99fbb7c736 refactor NameDict 2023-10-12 21:30:41 +08:00
blueloveTH
ed26e08704 ... 2023-10-12 19:43:07 +08:00
blueloveTH
2cf3bdc097 improve exception performance 2023-10-12 13:20:12 +08:00
blueloveTH
6d6c2935f4 ... 2023-10-12 12:45:11 +08:00
blueloveTH
9c854662e2 ... 2023-10-12 10:54:27 +08:00
blueloveTH
eb5be9ba41 import can be used in local scope now 2023-10-12 01:02:46 +08:00
blueloveTH
cc1121f57d ... 2023-10-11 21:47:37 +08:00
blueloveTH
66423f08a8 zero init struct 2023-10-11 21:45:14 +08:00
blueloveTH
b26dbf08cc improve number parsing speed 2023-10-11 14:37:43 +08:00
BLUELOVETH
df4e0e329a
Merge pull request #154 from stautonico/main
Added support for octal and binary literals
2023-10-11 13:06:08 +08:00
blueloveTH
57beebdfd9 ... 2023-10-11 13:05:07 +08:00
blueloveTH
6dad2d612e ... 2023-10-09 00:03:23 +08:00
blueloveTH
e26f389182 fix assert message won't be evaluated on true cond 2023-10-08 20:09:22 +08:00
blueloveTH
cf7dc098a3 remove windows.h 2023-10-02 06:38:23 +08:00
blueloveTH
8b3fd31681 ... 2023-10-02 06:19:12 +08:00