K. Lange
70d5f1b2b7
Implement NotImplemented, fallback operators
...
Adds 'NOTIMPL' as a new primitive value, available from
__builtins__.NotImplemented. Adds support for inverse /
reflected overrides for binary operators. Adds opcodes
for LESS_EQUAL and GREATER_EQUAL.
2021-03-30 16:42:29 +09:00
K. Lange
873daa1f67
Improve some syntax errors
2021-03-30 14:18:39 +09:00
K. Lange
006119cc1e
Support arguments to super(), support outside of classes
2021-03-30 14:18:39 +09:00
K. Lange
1c5c2577e9
Make 'self' not a keyword
...
It's still implicitly the first argument to a method and can not be
used in a method signature outside of the first argument, which is
ignored in the compiler. Actually, we allowed 'self' to be quietly
stuck in other slots but now we should correctly error on it.
2021-03-30 12:28:16 +09:00
K. Lange
84817c45cf
Add more docstrings to builtins
2021-03-29 10:39:40 +09:00
K. Lange
db1275d57f
Fix typo in docstring for builtins module
2021-03-29 09:27:18 +09:00
K. Lange
13fea2ce96
Add deploy-docs phony make target
2021-03-29 09:26:24 +09:00
K. Lange
c7d14d0528
Add tool 'krk-debug-stats' which prints basic sizes
2021-03-29 09:26:13 +09:00
K. Lange
9b6886096f
Reduce second-chance GC to one second chance, which seems completely stable on our threaded tests
2021-03-29 08:11:42 +09:00
K Lange
ed5d03b001
Add additional builtin exception types to rline
2021-03-27 22:02:08 +09:00
K. Lange
b2172af00a
Slightly nicer f-string interpolation highlighting
2021-03-27 21:46:02 +09:00
K. Lange
7318e1fb3e
Enter single step on SIGTRAP
2021-03-27 13:13:20 +09:00
K. Lange
71685ade0a
Fix history scroll behavior in repl and dbg
2021-03-27 13:11:01 +09:00
K Lange
57970d662e
Highlight simple f-string interpolations
2021-03-26 23:32:58 +09:00
K Lange
551b5d8f2e
Add cloc language definition file
2021-03-26 22:47:54 +09:00
K. Lange
4aa0042ee1
Support native bindings being static and class methods
2021-03-26 22:30:31 +09:00
K. Lange
77240ab772
Report better import errors for -m
2021-03-26 20:28:46 +09:00
K. Lange
1f690285be
Add -i
2021-03-26 20:20:35 +09:00
K. Lange
bd61f499cd
Add method.__func__, method.__self__
2021-03-26 17:08:40 +09:00
K Lange
e977a3183f
Let class attribute hints be specified without declarations
2021-03-26 14:06:09 +09:00
K. Lange
7a81724595
Unify more format strings
2021-03-26 12:17:14 +09:00
K. Lange
9a0b940302
Fix functions from C extensions that got disappeared
2021-03-26 07:01:53 +09:00
K Lange
8c63995342
Actually return from krk_runfile on read failure
2021-03-25 22:58:23 +09:00
K Lange
60f148c3e2
Silly hack to get -- options working in Windows
2021-03-25 22:58:10 +09:00
K. Lange
1ec1e59c5d
Pull some little tricks for performance
2021-03-25 19:51:08 +09:00
K. Lange
41c77de753
Implement overridable hashing and speed up property access
2021-03-25 19:49:18 +09:00
K. Lange
857da44509
Swap out bitfields for flags for flexibility
2021-03-25 19:47:19 +09:00
K. Lange
2e56d238a2
Fix set literal compilation
2021-03-25 19:42:27 +09:00
K. Lange
555100c3c9
Try to ignore imported functions, classes in tools.gendoc
2021-03-25 15:52:54 +09:00
K. Lange
9659be93ba
Teach Doxygen KRK_METHOD, KRK_FUNC
2021-03-25 15:52:54 +09:00
K. Lange
0306890f89
Add function.__code__, codeobject.__constants__
2021-03-25 15:52:54 +09:00
K. Lange
a347af917e
Add codeobjects to dis.dis, filenames as optional arg to dis.build
2021-03-25 15:52:54 +09:00
K. Lange
445c34fed2
Clean up headers a bit
2021-03-25 15:52:54 +09:00
K. Lange
28ed8151ac
Include <time.h> from vm.h
2021-03-25 15:52:40 +09:00
K Lange
e95a43c535
Reset ANSI escape mode when clearing rest of line in rline
2021-03-25 13:18:14 +09:00
K. Lange
6892b1e4f6
Cleanups recommended by clang; no inline function call for dbl/val conversion
2021-03-25 13:13:12 +09:00
K. Lange
d648155dc3
Make Thread.tid work on Windows
2021-03-25 12:57:16 +09:00
K. Lange
04a95fa779
Add docstrings to 'callgrind' module
2021-03-25 09:54:23 +09:00
K. Lange
50f94d9d3b
Update doc generation for properties, type hints
2021-03-25 09:54:07 +09:00
K. Lange
5c3256e4d1
Free vm.binpath on freeVM
2021-03-25 09:14:00 +09:00
K. Lange
6b41476e8d
Fix highlighting of parens in some situations due to invalid read
2021-03-25 08:37:43 +09:00
K Lange
a58ca88bd3
Cleanup callgrind output
2021-03-24 21:52:10 +09:00
K Lange
4f94919bc1
Need to make target directory for codecs module on install
2021-03-24 21:26:52 +09:00
K Lange
8a36b92343
Don't rebuild codec data files unless the sources changed
2021-03-24 21:23:41 +09:00
K Lange
dbe6ae13d9
Add flag to report GC collections
2021-03-24 21:23:15 +09:00
HarJIT
5c2de206b9
Codecs package ( #4 )
...
Codecs package
Co-authored-by: HarJIT <harjit@harjit.moe>
2021-03-24 04:53:02 -07:00
K Lange
2ed8e65c89
Rework KrkValue to use NaN-boxing
2021-03-24 20:49:44 +09:00
K Lange
073a5828d0
Don't include tracing on emscripten, it lacks clock_gettime
2021-03-24 20:49:44 +09:00
K Lange
9da1577245
Make sure ctags includes headers
2021-03-24 20:49:44 +09:00
K Lange
ecf2adbc13
Quick fixes
2021-03-24 20:20:50 +09:00