ccbc2f8d4e0c31fca431256886673ac838900e9a
Add support for class inheritance in the compiler by parsing the 'is' keyword to load a superclass and emit a CODE_SUBCLASS instruction. In the VM, extend newClass to accept a superclass parameter, copy inherited methods from the superclass into the new class, and store the superclass pointer in the ObjClass struct. Introduce a root Object class in the core library and set it as the superclass for all built-in types. Add a test file verifying method inheritance and arity-based dispatch.
Description
Highly customized version of the wren programming language. It has all the modules that you would expect in a std library including http, websockets, sqlite3 and jinja-like templating engine. The idea is to make it suitable for web development.
22 MiB
Languages
HTML
50%
C
22.2%
PHP
13.4%
C++
6%
Makefile
2.9%
Other
5.5%