K. Lange
|
428c368a75
|
Support optional arguments by tracking separate arities
|
2020-12-30 08:00:48 +09:00 |
|
K. Lange
|
5ff31e7d96
|
fix parse error line output for error tokens from scanner
|
2020-12-29 22:16:35 +09:00 |
|
K. Lange
|
7f47224bd9
|
remove superfluous range module
|
2020-12-29 22:06:29 +09:00 |
|
K. Lange
|
267c7b5650
|
rudimentary character literal, specifically for bim syntax [sorry if you like single-quote strings in python]
|
2020-12-29 21:29:15 +09:00 |
|
K. Lange
|
430f20566e
|
allow native functions to be bound as methods with a little work
|
2020-12-29 20:31:35 +09:00 |
|
K. Lange
|
7dfd853217
|
More stuff for embedding
|
2020-12-29 18:51:03 +09:00 |
|
K. Lange
|
4c651592f8
|
fix up some compiler eof stuff to make embedding more reasonable
|
2020-12-29 18:50:39 +09:00 |
|
K. Lange
|
eb17af8076
|
Embed __builtins__ source directly
|
2020-12-29 18:50:18 +09:00 |
|
K. Lange
|
b0c2772937
|
switch some type conversions to bound methods
|
2020-12-29 16:40:42 +09:00 |
|
K. Lange
|
2c18402d40
|
escape sequences in strings
|
2020-12-29 16:26:00 +09:00 |
|
K. Lange
|
edc963b014
|
reword README
|
2020-12-29 15:39:34 +09:00 |
|
K. Lange
|
c6e5c8c120
|
once again, completely redo the parsing for indentation so that we can have pretty syntax errors
|
2020-12-29 15:26:45 +09:00 |
|
K. Lange
|
54c3779938
|
fix up handling of exceptions in module imports
|
2020-12-29 13:19:22 +09:00 |
|
K. Lange
|
c91a861c99
|
Add some actually useful stuff to the readme
|
2020-12-29 12:51:31 +09:00 |
|
K. Lange
|
105e92f846
|
gobble more line feeds and handle eof condition on if/try without matching else/except
|
2020-12-29 12:40:19 +09:00 |
|
K. Lange
|
30cd3fb150
|
Allow empty blocks and merged single-line blocks
|
2020-12-29 12:26:26 +09:00 |
|
K. Lange
|
32d7d6f666
|
fix scanner issue with EOF after indentation
|
2020-12-29 12:24:48 +09:00 |
|
K. Lange
|
a0d52a61f2
|
add an exception mechanism
|
2020-12-29 11:00:12 +09:00 |
|
K. Lange
|
ba73f5a32a
|
move stray test into test/
|
2020-12-29 08:25:36 +09:00 |
|
K. Lange
|
0f7bc84ad3
|
for loops must open a new scope around their blocks as well or they won't pop locals before the loop finishes
|
2020-12-29 08:23:18 +09:00 |
|
K. Lange
|
9a580d6720
|
Add binding to configure debug tracing at runtime
|
2020-12-29 08:22:54 +09:00 |
|
K. Lange
|
56e7f3aa02
|
Not actually slower to include the debug branches
|
2020-12-29 08:22:37 +09:00 |
|
K Lange
|
e9261a2f56
|
change size of integers to long
|
2020-12-28 16:32:40 +09:00 |
|
K Lange
|
b32dde0431
|
add % operator
|
2020-12-28 16:32:27 +09:00 |
|
K Lange
|
27f888543d
|
let's build things for a faster vm by default
|
2020-12-28 16:31:53 +09:00 |
|
K. Lange
|
d8d03a2c4c
|
pause gc around bound native calls
|
2020-12-28 22:18:30 +09:00 |
|
K. Lange
|
067d8cdb65
|
fix upvalue storage being completely broken when we move the stack
|
2020-12-28 22:02:39 +09:00 |
|
K. Lange
|
2432135b15
|
clean up repl highlighter
|
2020-12-28 21:31:46 +09:00 |
|
K. Lange
|
ae2b00bcfa
|
int32_t is long int on toaru? I should probably fix that
|
2020-12-28 21:08:55 +09:00 |
|
K. Lange
|
724e44655d
|
Make print statement force args to strings
|
2020-12-28 20:47:16 +09:00 |
|
K. Lange
|
3ba8025eeb
|
lots of fixups so we can create dicts from the vm
|
2020-12-28 20:38:26 +09:00 |
|
K. Lange
|
b3ad2e1f22
|
Second pass at cleaning up built-ins
|
2020-12-28 19:26:01 +09:00 |
|
K. Lange
|
cdcbf6cf54
|
First pass at module/builtin cleanup
|
2020-12-28 19:01:28 +09:00 |
|
K Lange
|
86d2a80a6d
|
make String.length a method
|
2020-12-28 11:29:58 +09:00 |
|
K Lange
|
5a5c597033
|
little repl improvements
|
2020-12-28 11:25:42 +09:00 |
|
K Lange
|
ac15ca117c
|
Clean up some pedantic warning stuff
|
2020-12-28 11:11:50 +09:00 |
|
K. Lange
|
a1c8844292
|
Add screenshot of repl to README
|
2020-12-28 16:08:06 +09:00 |
|
K. Lange
|
3c0bd99a2e
|
ssize_t usually comes from sys/types
|
2020-12-28 16:07:52 +09:00 |
|
K. Lange
|
bbae30b09b
|
fix history scrollback
|
2020-12-28 14:00:12 +09:00 |
|
K. Lange
|
db086de155
|
fix List.__set__
|
2020-12-28 13:55:55 +09:00 |
|
K. Lange
|
f62f6f84e2
|
fix up some bad garbage collections with modules
|
2020-12-28 13:51:14 +09:00 |
|
K. Lange
|
0f508c38dc
|
Add support for iterators
|
2020-12-28 13:35:02 +09:00 |
|
K. Lange
|
1d3368861b
|
fix a bunch of compiler stuff
|
2020-12-28 12:16:44 +09:00 |
|
K. Lange
|
1bae2060eb
|
add fancy repl
|
2020-12-28 11:37:38 +09:00 |
|
K. Lange
|
8f42695f36
|
Fix up repl
|
2020-12-28 10:54:25 +09:00 |
|
K. Lange
|
369e0f84db
|
We can also put them on more basic types
|
2020-12-28 09:17:00 +09:00 |
|
K. Lange
|
3bcc5d5530
|
Synthesized properties and methods for strings
|
2020-12-28 09:08:35 +09:00 |
|
K. Lange
|
c55c806e40
|
we can extract properties from types other than instances in the vm, like this dynamic length method
|
2020-12-28 08:17:54 +09:00 |
|
K. Lange
|
01fdf1d86f
|
remove superfluous debug prints
|
2020-12-27 22:48:22 +09:00 |
|
K. Lange
|
08b4044cfe
|
executable stuff
|
2020-12-27 22:42:22 +09:00 |
|