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 |
|
K. Lange
|
0d2e115c93
|
Make sure we rebuild everything on a header file change...
|
2021-01-08 16:53:17 +09:00 |
|
K. Lange
|
3735b9c16b
|
Raise KeyboardInterrupt on ^C
|
2021-01-08 16:40:43 +09:00 |
|
K. Lange
|
3f66b85757
|
Add os.environ (missing set: TODO)
|
2021-01-08 16:36:24 +09:00 |
|
K. Lange
|
0a9276863c
|
Move module_paths to 'kuroko' insted of __builtins__
|
2021-01-08 15:59:43 +09:00 |
|
K. Lange
|
596b552219
|
Add str.[l,r]strip() suite
|
2021-01-08 15:53:39 +09:00 |
|
K. Lange
|
80c307e12a
|
Remove src/*.o on 'make clean'
|
2021-01-08 12:15:53 +09:00 |
|
K. Lange
|
f21a959b14
|
Add instructions for static builds
|
2021-01-08 12:12:44 +09:00 |
|
K. Lange
|
0658d2f4dd
|
Flags and Makefile for static building
|
2021-01-08 10:59:03 +09:00 |
|
K. Lange
|
bd644026b0
|
Try to enable a Github Actions workflow
|
2021-01-08 08:49:08 +09:00 |
|
K. Lange
|
cdd3272d0e
|
Accept tabs as being equivalent to eight spaces, but no mixing on a single line
|
2021-01-08 07:05:33 +09:00 |
|
K. Lange
|
ee518f9643
|
Fix two symbols missing namespacing prefixes
|
2021-01-08 06:49:27 +09:00 |
|
K Lange
|
44f69a78c2
|
Fix leak in _string_split
|
2021-01-07 23:18:14 +09:00 |
|
K Lange
|
3823270a8b
|
Set interpreter rpath to $ORIGIN
|
2021-01-07 22:52:38 +09:00 |
|