Commit Graph

291 Commits

Author SHA1 Message Date
K. Lange
eb27158173 Class fields and access to class member methods 2021-01-11 16:31:34 +09:00
K. Lange
3141678fa0 Add 'is'/'is not' for exact object equivalence 2021-01-11 15:03:05 +09:00
K. Lange
1e6507e741 zero checks (without relying on FPE interrupt) 2021-01-11 14:50:01 +09:00
K. Lange
991ed99e78 Add a basic collections module 2021-01-11 14:08:05 +09:00
K. Lange
213c496372 Fix up string escapes, make sure we're handling nil bytes when printing 2021-01-11 11:41:26 +09:00
K. Lange
faba2e9e3f Decorators don't need inner wrappers, of course 2021-01-11 07:55:31 +09:00
K. Lange
393c3be0b6 Remove confusing line about decorator arguments 2021-01-11 07:47:58 +09:00
K. Lange
7c4080c417 '... when they are used...' 2021-01-11 07:45:48 +09:00
K. Lange
36d0db27e8 Fix nested exception example 2021-01-11 07:41:32 +09:00
K. Lange
ed9234e707 '... after an exception...' 2021-01-11 07:39:34 +09:00
K. Lange
48da930acd Typos 2021-01-11 07:03:09 +09:00
K. Lange
ff7dcbb92a Support 'return' from within a 'with' block 2021-01-10 23:39:05 +09:00
K. Lange
e6997418cb Improvements to repl tab completion 2021-01-10 22:07:13 +09:00
K. Lange
be0e8dd6c6 Add gc.collect() 2021-01-10 21:14:15 +09:00
K. Lange
b43c723be6 Should pop last by default; support negative indexes to count from back 2021-01-10 20:54:38 +09:00
K. Lange
78c5503341 list.pop() is really useful 2021-01-10 20:49:01 +09:00
K. Lange
fee817c3b7 Cleanup internal dict, list references 2021-01-10 19:44:02 +09:00
K. Lange
35570e7ee9 Support complex argument expansion in C functions 2021-01-10 18:49:52 +09:00
K. Lange
3532f24c75 Rewrite complex argument processor because that old stack-juggling version was awful 2021-01-10 18:23:28 +09:00
K. Lange
30cbeeb85e A bunch more README cleanups 2021-01-10 14:27:39 +09:00
K. Lange
a0920999b6 Try to better explain closures? I'm not great at this. 2021-01-10 13:23:02 +09:00
K. Lange
512b8fd408 More notes on default args, lambda expressions, move variables 2021-01-10 13:15:47 +09:00
K. Lange
5ddb1b60bf Don't pointless call bindMethod in the VM; use direct references 2021-01-10 12:54:40 +09:00
K. Lange
72cd8e39b3 Make sure C module implementers know to call krk_finalizeClass 2021-01-10 12:52:20 +09:00
K. Lange
98fea9bb64 print() should __str__, not __repr__; repl should __repr__, not printValue...
printValue() probably shouldn't exist... and that's about it.
2021-01-10 12:42:24 +09:00
K. Lange
01176579f6 Exceptions were made into special objects over a week ago 2021-01-10 12:00:26 +09:00
K. Lange
21477f7c86 Minor readme rewording 2021-01-10 11:08:34 +09:00
K. Lange
84302652a8 move test 2021-01-10 11:00:14 +09:00
K. Lange
500e761a67 krk_reserve_stack shouldn't be inline 2021-01-10 10:42:52 +09:00
K. Lange
f19833b506 Fix fileio.{stdin,stdout,stderr} which we broke when internalizing the FILE pointer 2021-01-09 22:10:07 +09:00
K. Lange
881864a5b2 'make test' should get an exit code from 'git diff' 2021-01-09 14:01:21 +09:00
K. Lange
997e1a8d2a length should determine truthiness where relevent 2021-01-09 13:58:46 +09:00
K. Lange
ffaf97d8dd Make that slightly smaller 2021-01-09 13:01:31 +09:00
K. Lange
13ffe5d1d7 icon tweaks 2021-01-09 12:58:56 +09:00
K. Lange
52427a5147 Add a basic 'with' statement
This is incomplete; it's missing the necessary plumbing to ensure __exit__
still gets called if the inner block returns or raises an exception. TODO
2021-01-09 12:46:59 +09:00
K. Lange
bb6b4d09f5 Move file pointer to File->_internal 2021-01-09 10:40:52 +09:00
K. Lange
13620e4d6d Add File.readlines() 2021-01-09 10:27:36 +09:00
K. Lange
656942f612 Cleanup and useful builtins 2021-01-09 10:12:50 +09:00
K. Lange
a8f95c22a8 The red text is a bit poor 2021-01-09 07:32:43 +09:00
K. Lange
2b6840b07d Add logo? 2021-01-08 23:12:16 +09:00
K. Lange
0149f7cfee Add missing free() after calling repl 2021-01-08 22:18:56 +09:00
K. Lange
c405bc1bfa Reserve stack space before directly passing stack to krk_dict_of in callValue 2021-01-08 22:18:04 +09:00
K. Lange
0599ad0775 Replace Makefile.static with a complicated combination of config options 2021-01-08 20:26:29 +09:00
K Lange
2bd0d93596 Add kuroko.argv 2021-01-08 19:05:11 +09:00
K Lange
2f7503cd0d Switch to a more sensible default for module_paths 2021-01-08 18:29:29 +09:00
K. Lange
070b4bc356 Add tuple unpacking and 'if' conditions to list comprehensions 2021-01-08 18:00:49 +09:00
K. Lange
fc05327c42 Support unpacking tuples in for ... in ... loops. 2021-01-08 17:42:57 +09:00
K. Lange
8f9c1a4c1d Switch C-style loops to semicolons before I regret having used commas 2021-01-08 17:14:42 +09:00
K. Lange
0f44617825 shorten builtin collection reprs; still want to rewrite these in C 2021-01-08 17:13:27 +09:00
K. Lange
ace8357c9a List comprehensions should not set their subfunctions to methods; ensures 'self' is an upvalue 2021-01-08 16:53:46 +09:00