Commit Graph

529 Commits

Author SHA1 Message Date
K. Lange
d5d3d721e7 The big documentation system overhaul 2021-02-20 14:10:36 +09:00
K. Lange
32b957aff7 Be more usefully descriptive of argument types in function.__args__ 2021-02-20 14:08:05 +09:00
K. Lange
d55071c291 Fix incorrect assignment of *args name to keywordArgNames 2021-02-20 14:07:41 +09:00
K. Lange
298f429c30 Add a very simple embedding demo for doc purposes 2021-02-19 21:25:15 +09:00
K. Lange
2af6291834 Minor doxygen comment cleanup 2021-02-19 21:24:59 +09:00
K. Lange
35ddf81c88 isinstance() should be able to take a tuple of types 2021-02-19 21:24:41 +09:00
K. Lange
8fc9ce128b Add getattr(), kuroko.importmodule() 2021-02-19 21:05:23 +09:00
K. Lange
3d9530ed19 Doxygen C API stuff is pretty much ready to ship, so here it is... 2021-02-19 13:56:54 +09:00
K. Lange
f14cc086e0 Just always enable threading outside of Emscripten and Windows 2021-02-19 13:32:45 +09:00
K. Lange
79cc3bdac1 More header cleanup, rename some stuff 2021-02-19 12:30:39 +09:00
K. Lange
6f1eefe68d Make isObjType a macro, mostly to appease llvm that complains about the static inline usage in an externed function 2021-02-19 11:14:40 +09:00
K Lange
d1535de8d2 Elminate calls to sprintf 2021-02-19 11:06:07 +09:00
K. Lange
03d917bf40 Doc comments for exceptions.c 2021-02-19 08:18:06 +09:00
K Lange
f94988f741 Prefix CallFrame to KrkCallFrame since it is in our public API 2021-02-18 21:54:58 +09:00
K. Lange
c567204f65 More doc comments 2021-02-18 21:00:27 +09:00
K. Lange
076b702afa Start writing doxygen/javadoc-style doc comments for C API 2021-02-18 19:18:35 +09:00
K. Lange
d112107edc Attach real name of exception in except block to local names table for debugging 2021-02-18 12:57:47 +09:00
K. Lange
9bbb0a1d6e Overhaul exceptions with tracebacks; 'except Type...' 2021-02-18 11:04:59 +09:00
K. Lange
b527561b53 Have a bytes iterator, why not. 2021-02-18 08:54:23 +09:00
K. Lange
649b452714 That changes some test results intentionally 2021-02-18 08:45:07 +09:00
K. Lange
de6a476d01 Fix up exception handling printing 2021-02-18 08:42:05 +09:00
K. Lange
7cfd68d047 Catch non-string result from repr when trying to print exceptions 2021-02-18 08:14:57 +09:00
K. Lange
f70cc3619b Cleanup disassembler output even more 2021-02-17 23:12:14 +09:00
K. Lange
d01476d7b7 Finally pull in that opcode re-org...
... where we use the top two bits as a fixed operand size
that we always check on each instruction cycle.
2021-02-17 22:56:41 +09:00
K Lange
d0d144d0e9 Ensure that's handling closure upvalues correctly 2021-02-17 22:41:06 +09:00
K Lange
9b8d77e9b7 Adopt a more Python-esque disassembly output highlighting jump targets 2021-02-17 22:17:14 +09:00
K. Lange
82af7bcbcb Simplify most uses of unpackArray() macros to a single 'unpackIterableFast()' macro; support things other than lists in str.join() 2021-02-17 14:35:48 +09:00
K. Lange
9ef1d2ed66 I'm not really sure why that was failing, but let's copy the binpath just in case... 2021-02-16 08:50:17 +09:00
K Lange
3cef9d05e8 Add simple repl to krk-sandbox 2021-02-15 21:16:23 +09:00
K. Lange
9b3f311688 Directory.__enter__, __exit__ 2021-02-15 18:26:03 +09:00
K. Lange
34e7eb4e57 Embed os, dir, time, fileio modules in core; only 'math' is still a separate shared library 2021-02-15 16:27:50 +09:00
K. Lange
1d8f308b0d Incorrect function signature for compiler.c:lambda() was breaking WASM 2021-02-15 12:57:25 +09:00
K. Lange
8890f62d58 Apparently Python has a very specific meaning for 'words' in .title() 2021-02-14 18:43:33 +09:00
K. Lange
e93ff9c9c3 Add simple str.upper(), lower(), title() 2021-02-14 18:21:11 +09:00
K. Lange
4a9e3981fc Add object.__hash__() 2021-02-14 15:04:09 +09:00
K. Lange
e287b74973 Shift by _eight_ bits and magically everything is fast 2021-02-14 15:03:33 +09:00
K. Lange
419fcbfa45 Retool hashing, specifically for tuples 2021-02-14 13:38:54 +09:00
K. Lange
670eced948 Fix arg check for Exception.__init__ 2021-02-14 11:30:27 +09:00
K. Lange
a961def84a Only realloc once when appending string to stringbuilder 2021-02-14 11:26:22 +09:00
K. Lange
22453f42e6 useful methods for bytes 2021-02-14 11:18:54 +09:00
K. Lange
e0adfcdc80 Remove str-nonstr concatenation / implicit coercion 2021-02-14 08:25:53 +09:00
K. Lange
a7e110cad9 Change how module imports work to support a package importing contained modules 2021-02-14 08:13:53 +09:00
K. Lange
20b4142420 Fix bad nested string allocation lock release 2021-02-14 07:57:05 +09:00
K. Lange
bd1bbc2a32 Fix bundled builds refering wrong state structure 2021-02-13 09:02:37 +09:00
K. Lange
c53b532e9f Fix static build 2021-02-13 09:01:12 +09:00
K. Lange
ce28992c83 Clean exec versions of tools 2021-02-13 08:55:03 +09:00
K. Lange
8b5cfdf4e2 More stuff for os module 2021-02-12 19:50:55 +09:00
K. Lange
798df9cc08 cleanup unused / redundant defs 2021-02-12 16:01:29 +09:00
K. Lange
7d18c9fb1a Fix missing nil terminators in strings read by marshal reader 2021-02-12 15:57:54 +09:00
K. Lange
e6a50d6746 Clean tools on 'make clean' 2021-02-12 15:54:13 +09:00