About the project
lumen is a dynamically typed scripting language in Kotlin, compiled to bytecode and run on a stack-based virtual machine. Source code goes through four stages: a scanner splits it into tokens, a parser builds an AST from them (a tree describing program structure), a compiler turns the tree into bytecode, a sequence of simple instructions, and the virtual machine executes them, keeping intermediate values on a stack. Dynamic typing means the types of values are checked while the program runs.
The challenge
For a scripting language to actually run code, a parser alone is not enough: the program still has to be compiled to bytecode and then run on a virtual machine written specifically for this language.