K. Lange
7f134f262c
Appease warning about misleading indentation in a macro expansion
2022-09-28 13:07:39 +09:00
K. Lange
5f4d3df5d0
Fixup empty parameter lists in function definitions
2022-09-19 10:19:09 +09:00
K. Lange
21885de9ad
1.3.0
2022-09-14 06:24:26 +09:00
K. Lange
8043ca2183
Pre-hash strings from str(),hex(),oct(),bin() conversions
2022-09-13 19:46:17 +09:00
K. Lange
08aa30a7c0
Calculate hash while multiplying strings
2022-09-13 19:32:03 +09:00
K. Lange
b9b60adf56
Better power-of-two base conversions for parsing/printing longs
2022-09-13 19:10:52 +09:00
K. Lange
564a4b3307
Parse 'let' declarations as simple statements
2022-09-13 14:25:39 +09:00
K. Lange
a59b635bbc
tgamma/lgamma should exist on all of these platforms
2022-09-03 20:00:14 +09:00
K. Lange
90f6854c72
Just bind tgamma instead for now; can alias it later
2022-09-01 06:33:16 +09:00
K. Lange
6cb3be264b
Don't bind 'math.gamma' to libc gamma, we have no idea what that might actually calculate
2022-09-01 06:23:44 +09:00
K. Lange
d63ab70466
Fix dangling pointer to VM value stack in krk_processComplexArguments
...
Fixes #30
2022-08-31 19:06:43 +09:00
K. Lange
81c570686b
Saturate rather than failing on index bounds in list.insert()
2022-08-26 04:26:37 +09:00
K. Lange
ab0418fec6
fix missing .0 when printing negative whole floats
2022-08-25 09:32:09 +09:00
K. Lange
016e9e4143
Use StringBuilders in compiler string parsing
2022-08-14 14:12:18 +09:00
K. Lange
0b696fc361
StringBuilders should be cleared when finished or discarded
2022-08-14 14:10:56 +09:00
K. Lange
e4f96af8dd
Expand KRK_Method, KRK_Function in doxygen docs, instead of old _METHOD, _FUNC
2022-08-14 13:55:23 +09:00
K. Lange
9732e0115a
Drop SCAN_TRACING
2022-08-14 13:52:59 +09:00
K. Lange
13d018986a
Add an __options__ import to disable implicit 'self'
2022-08-14 13:48:59 +09:00
K. Lange
e6e63ada72
Fixup backspace behavior in rline
2022-08-14 13:48:07 +09:00
K. Lange
4e791e9d31
Fix bad return values from int.__eq__, float.__eq__
2022-08-12 20:10:54 +09:00
K. Lange
b9f8f4cb7e
Bump serial
2022-08-11 12:01:34 +09:00
K. Lange
342ee04553
Cleanup krk_disassembleInstruction
2022-08-11 11:46:38 +09:00
K. Lange
fb57355178
Use krk_parseArgs in os module
2022-08-11 10:52:48 +09:00
K. Lange
607ac88282
Support several int conversions in krk_parseArgs
2022-08-11 10:48:24 +09:00
K. Lange
db3a628c04
Expose _protected in util.h, useful elsewhere
2022-08-11 10:47:46 +09:00
K. Lange
ca981fbb8e
Cleanup operators to use a common function
2022-08-10 21:27:51 +09:00
K. Lange
bdfb0e2221
Make paste() a little bit smarter
2022-08-10 21:02:07 +09:00
K. Lange
de7e32b9e8
Cleanup input()
2022-08-10 20:38:14 +09:00
K. Lange
7bd6cdfa66
Implement proper float conversions for longs
2022-08-10 16:40:28 +09:00
K. Lange
984dea5e86
ToaruOS has sigaction now
2022-08-06 18:29:43 +09:00
K. Lange
ad39476a35
Clean up function, method repring
2022-08-06 12:20:04 +09:00
K. Lange
29199c9568
And in base objects...
2022-08-06 12:19:40 +09:00
K. Lange
ca631e043e
Use new formatted string builders in various places
2022-08-06 12:18:40 +09:00
K. Lange
32c1dba829
Add krk_stringFromFormat
2022-08-06 12:17:56 +09:00
K. Lange
a632144c74
Fix handling of ^C when editing multi-line input
2022-08-06 11:53:28 +09:00
K. Lange
6b8d7ee6d0
Move StringBuilder functions out of header, into obj_str; add pushStringBuilderFormat
2022-08-06 11:52:54 +09:00
K. Lange
6029d50749
Fix incorrect handling of tombstones in tableGet_Fast, tableFindString
2022-08-06 11:08:40 +09:00
K. Lange
f6a5f7f954
Cleanup exception hierarchy
...
- Add BaseException as the proper base of all exception types.
- Add SystemError for internal errors.
- Move OSError out of 'os' and into the core.
- Make KeyboardInterrupt subclass BaseException.
- Make ArgumentError subclass TypeError.
2022-08-05 12:36:06 +09:00
K. Lange
1129323cff
Trying to build an exception may itself raise an exception
2022-08-05 10:10:24 +09:00
K. Lange
5d9d33e10e
The builtins module really should be called 'builtins'
2022-08-04 05:58:22 +09:00
K. Lange
879a26f3cf
Support rline in the simple-repl and update it to be more like the real one
2022-08-03 22:52:55 +09:00
K. Lange
0df346fb9b
Don't keep rebuilding class object that tracks compiler state for gc...
2022-08-03 22:22:50 +09:00
K. Lange
6d8d33c020
Move File, BinaryFile, Directory to fileio module
2022-08-03 22:05:14 +09:00
K. Lange
0455137c7b
Store fget, fset as direct object pointers if we can
2022-08-03 22:04:57 +09:00
K. Lange
8236fb9037
Rewrite attribute get/set to fix descriptors; drop DYNAMIC_PROPERTY
2022-08-03 21:01:28 +09:00
K. Lange
c519298183
reorder opcodes since we added EXIT_LOOP
2022-08-03 20:43:19 +09:00
K. Lange
71dd3ecce9
Use krk_parseArgs in a few places
2022-08-03 19:44:59 +09:00
K. Lange
15fa509193
Add krk_parseArgs utility function
2022-08-03 19:44:07 +09:00
K. Lange
2387ac6b29
bytes() can take iterators, int, encode strings (utf-8)
2022-08-03 09:10:37 +09:00
K. Lange
0d23254a1e
Replace all uses of PUSH_CHAR in obj_str with string builders
2022-08-03 08:56:55 +09:00