Commit Graph

537 Commits

Author SHA1 Message Date
K. Lange
c5e5980265 More str methods 2021-02-06 06:53:44 +09:00
K Lange
c79dfca79d Quick mingw build fixes 2021-02-05 22:10:10 +09:00
K. Lange
c732089a43 Add a method to fileio to read directories 2021-02-05 21:06:04 +09:00
K. Lange
e7a8d0b8e5 Attach code object for class to the resulting class object 2021-02-05 20:34:18 +09:00
K. Lange
f4216ed3a1 Implement set literals, comprehensions 2021-02-05 20:23:28 +09:00
K. Lange
19e5beba05 Implement class decorators and move class definitions into pseudo-functions 2021-02-05 19:54:46 +09:00
K. Lange
930b599e82 Expose basic operators and add more builtins, list functions 2021-02-05 19:05:08 +09:00
K. Lange
4d05ca218c Fix push ordering in attachNamed{Object,Value} 2021-02-05 17:54:55 +09:00
K. Lange
e9e86577bd Fix unbalanced stack in new Helper/LicenseReader 2021-02-05 17:54:40 +09:00
K. Lange
4ea5086541 Start labeling this as 1.1.0 2021-02-05 17:39:47 +09:00
K. Lange
b3a577294f Final cleanups 2021-02-05 17:28:36 +09:00
K. Lange
90b219cdce Eliminate builtins.krk 2021-02-05 17:22:08 +09:00
K. Lange
689cee075e C-ify set(), mostly the same as it was originally written 2021-02-05 16:09:29 +09:00
K. Lange
523dbc1371 Port list and dict, and their iterators, to use new utility macros 2021-02-05 15:08:33 +09:00
K. Lange
5c14efa085 Clean up some string functions 2021-02-04 19:22:23 +09:00
K. Lange
edc3017bcd Break out (most) object implementations into their own files 2021-02-04 09:04:56 +09:00
K. Lange
7129a3ac7d Fix handling of error tokens from within f-strings 2021-02-01 21:40:18 +09:00
K. Lange
0b6b6468a6 Prune actual file paths from test/testPackageImports.krk 2021-01-31 11:13:39 +09:00
K. Lange
8388e53235 Improve build support and prep a 1.0.1 bugfix 2021-01-31 11:00:01 +09:00
K. Lange
67460145fa Add a test for everything we fix... 2021-01-31 09:57:15 +09:00
K. Lange
df25225c64 And we found our first post-release bug: Fix tupleiterator.__init__ 2021-01-31 09:20:51 +09:00
K. Lange
4eceb98ffe v1.0.0 2021-01-30 21:42:36 +09:00
K. Lange
0562b8b071 list.insert must use memmove, not memcpy 2021-01-29 16:44:36 +09:00
K. Lange
ed4a89ec42 Quick fix for REPLs so empty statements return None instead of '__file__' 2021-01-29 10:37:57 +09:00
K. Lange
135bf80196 Call this 1.0.0-rc1 2021-01-26 08:19:54 +09:00
K. Lange
a254304f40 Move set_tracing to kuroko module 2021-01-26 08:11:34 +09:00
K. Lange
a39347d829 argc should not include the kwargs dict in native function calls 2021-01-26 08:11:18 +09:00
K. Lange
662e033bd4 Keep first error on compiler failure 2021-01-25 19:39:16 +09:00
K. Lange
6e307a38f7 I seriously don't know why I had to do this. 2021-01-24 19:34:59 +09:00
K. Lange
d6c891d245 Support -c argument to interpreter 2021-01-24 16:27:49 +09:00
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