Dialect of Python with explicit variable declaration and block scoping, with a lightweight and easy-to-embed bytecode compiler and interpreter.
Go to file
2020-12-28 16:08:06 +09:00
.gitignore through chapter 19 of Crafting Interpreters 2020-12-26 09:32:21 +09:00
bindNativeMethod.krk We can also put them on more basic types 2020-12-28 09:17:00 +09:00
chunk.c Fix up repl 2020-12-28 10:54:25 +09:00
chunk.h Fix up repl 2020-12-28 10:54:25 +09:00
compiler.c ssize_t usually comes from sys/types 2020-12-28 16:07:52 +09:00
compiler.h Fix up repl 2020-12-28 10:54:25 +09:00
debug.c that's a lot of stuff and pretty much finishes the book; need to do optimizations 2020-12-27 22:40:35 +09:00
debug.h through chapter 19 of Crafting Interpreters 2020-12-26 09:32:21 +09:00
kuroko.c fix history scrollback 2020-12-28 14:00:12 +09:00
kuroko.h fix up some bad garbage collections with modules 2020-12-28 13:51:14 +09:00
LICENSE meta stuff 2020-12-26 16:59:43 +09:00
Makefile through chapter 19 of Crafting Interpreters 2020-12-26 09:32:21 +09:00
memory.c fix up some bad garbage collections with modules 2020-12-28 13:51:14 +09:00
memory.h Basic garbage collection; had to fix some stuff for stack preallocation 2020-12-27 16:07:27 +09:00
object.c fix a bunch of compiler stuff 2020-12-28 12:16:44 +09:00
object.h fix a bunch of compiler stuff 2020-12-28 12:16:44 +09:00
README.md Add screenshot of repl to README 2020-12-28 16:08:06 +09:00
rline.c Add support for iterators 2020-12-28 13:35:02 +09:00
rline.h add fancy repl 2020-12-28 11:37:38 +09:00
scanner.c fix a bunch of compiler stuff 2020-12-28 12:16:44 +09:00
scanner.h fix a bunch of compiler stuff 2020-12-28 12:16:44 +09:00
system.krk Add support for iterators 2020-12-28 13:35:02 +09:00
table.c hash tables (which should work with any object as keys?) and string interning from ch 20 2020-12-26 14:33:34 +09:00
table.h classes and instances (from ch 27) 2020-12-27 16:45:34 +09:00
test.krk fix a bunch of compiler stuff 2020-12-28 12:16:44 +09:00
testList.krk fix up some bad garbage collections with modules 2020-12-28 13:51:14 +09:00
value.c Add support for iterators 2020-12-28 13:35:02 +09:00
value.h hash tables (which should work with any object as keys?) and string interning from ch 20 2020-12-26 14:33:34 +09:00
vm.c fix List.__set__ 2020-12-28 13:55:55 +09:00
vm.h fix up some bad garbage collections with modules 2020-12-28 13:51:14 +09:00

Kuroko - A bytecode-compiled scripting language

This bytecode VM / compiler is substantially based on Robert Nystrom's Crafting Interpreters.

screenshot

Instead of implementing Lox, I am aiming for a language with a syntax reminiscent of Python - one with significant whitespace and generally the same keywords.

At the moment, the intent for this project is to add a proper scripting language to Bim, to which both configuration scripts and syntax highlighting will be ported.

Kuroko, as its name should imply, will also be made available in ToaruOS as a general user language, and some utilities may end up being written in it.