Commit Graph

407 Commits

Author SHA1 Message Date
K. Lange
00a1189309 Support initializing a list from an iterator or sequence 2021-01-24 16:10:12 +09:00
K. Lange
f55d5c486e Fixup setenv/unsetenv? 2021-01-24 15:29:17 +09:00
K. Lange
75ed11abea Highlight builtin exception type names 2021-01-24 12:54:32 +09:00
K. Lange
50e4902170 Hacky implementation of @staticmethod, @property, mb even @classmethod 2021-01-23 19:38:45 +09:00
K. Lange
824cbc59eb And update the test changed from that... 2021-01-23 13:34:09 +09:00
K. Lange
3e90615021 Also more built-in functions 2021-01-23 08:41:53 +09:00
K. Lange
9c15ac6638 Add missing keywords to highlighter 2021-01-23 08:39:02 +09:00
K. Lange
0ae793d519 More base class type checks, are we getting slow because of this? 2021-01-23 08:21:48 +09:00
K. Lange
3bb729705f Add more quick type checks to some base class methods 2021-01-23 08:10:01 +09:00
K. Lange
6cd6ed950e Try to catch corrupt File objects 2021-01-23 07:39:45 +09:00
K. Lange
1d0f589fc3 Start filling out more of the 'os' module 2021-01-22 22:02:24 +09:00
K. Lange
a6bc94a046 Add dict.__or__ for basic merge operation (some missing edge cases around subclasses) 2021-01-22 21:31:33 +09:00
K. Lange
a02a989ff2 Add os.system() 2021-01-22 21:16:03 +09:00
K Lange
4bf326ea1d Add os.environ.__set__ 2021-01-22 21:04:48 +09:00
K Lange
036368557b Applications may set vm.binpath before call krk_initVM to supply an executable path. 2021-01-22 20:49:41 +09:00
K. Lange
935ad8096d Finish C-ifying dicts 2021-01-22 19:38:18 +09:00
K. Lange
ad29dadf68 C-ify any, all 2021-01-22 19:11:52 +09:00
K. Lange
c44d24fb66 Make krk_runtimeError return None so we can simplify a common usecase 2021-01-22 16:10:58 +09:00
K. Lange
57cb1c61bc Start implementing some better argument/type checking 2021-01-22 15:45:23 +09:00
K. Lange
e510deaf7f Get rid of KrkInstance->_internal and just let C stuff extend KrkInstance 2021-01-22 15:12:19 +09:00
K. Lange
26480a5e1c Only run one script, other args are arguments after all. 2021-01-22 11:10:52 +09:00
K. Lange
460d1c39b9 Fix bad multiline handling in syntax.highlighter 2021-01-22 11:10:03 +09:00
K. Lange
8ec3cfe07d Optimizations for f-strings 2021-01-22 08:38:36 +09:00
K. Lange
195bd33a19 Fix issue with f-strings with multiple format blocks 2021-01-22 08:25:20 +09:00
K Lange
d4b8ed6747 Try to fix some stuff on Windows 2021-01-21 23:16:14 +09:00
K Lange
8ae251af52 Provide kuroko.executable_path and use it to set kuroko.module_path on Windows 2021-01-21 22:51:11 +09:00
K Lange
0093b92fc9 list.insert() 2021-01-21 22:50:54 +09:00
K. Lange
a69ee8efca oops, we accidentally commented out the rline-less fgets call 2021-01-21 21:24:35 +09:00
K. Lange
070a11b461 Makefile changes from building for macos 2021-01-21 21:09:01 +09:00
K. Lange
9737c713ca Add a more direct replacement for krk_typeOf to call natively 2021-01-21 20:50:01 +09:00
K. Lange
c0ef3a0917 Do that thing Python does when repr'ing strings where it picks between single and double quote 2021-01-21 18:52:53 +09:00
K. Lange
f1811fe23c Fixup Makefile after relocating files 2021-01-21 18:45:16 +09:00
K. Lange
f1387f9a74 Try to clean up internal doc-related things 2021-01-21 18:40:54 +09:00
K. Lange
deea801fe4 Minor stuff tripping up static analyzers 2021-01-21 16:57:01 +09:00
K. Lange
b872410b95 Add support for comma-separated imports 2021-01-21 11:09:20 +09:00
K. Lange
7497994100 Initial pass at format strings 2021-01-21 11:00:23 +09:00
K. Lange
b4344f7d21 Start reorganizing codebase 2021-01-21 09:11:55 +09:00
K. Lange
b3bc879c8c github's markdown parser doesn't like that 2021-01-21 08:18:44 +09:00
K. Lange
6cf0efed5d README typos 2021-01-21 08:17:37 +09:00
K Lange
d4c601ba75 Link with -lm when bundling. 2021-01-20 22:35:16 +09:00
K Lange
2d87fc2a68 (rline) don't fill input line with spaces if there's no right prompt 2021-01-20 22:23:36 +09:00
K. Lange
1cbe2d1857 Support * for list and str 2021-01-20 20:23:12 +09:00
K. Lange
d60ecf92af Clean up internal storage of lists and dicts 2021-01-20 19:46:00 +09:00
K. Lange
3b6db4be78 Unpack iterables in argument expansion 2021-01-20 19:13:59 +09:00
K Lange
e5bda9df8d Use ms_printf format strings in Windows so we can print our long longs 2021-01-19 23:28:26 +09:00
K. Lange
d6169a2c12 Support unpacking iterables in multiple assignments 2021-01-19 22:49:36 +09:00
K. Lange
85e7c667b4 C-ify some more collection methods 2021-01-19 22:27:05 +09:00
K. Lange
abff851af0 Don't give loop iterator an accessible name in for ... in 2021-01-19 21:11:28 +09:00
K. Lange
895eb367ee Support comprehensions for dicts, tuples. 2021-01-19 21:06:52 +09:00
K. Lange
851d3df8cd Add more operators. 2021-01-19 19:29:29 +09:00