Kayne Ruse c518960171 Toy_VM and Toy_Stack are working and tested, read more
At this point, only a minimal number of operations are working, and
after running any kind of source code, the 'result' is simply left on
the VM's stack. Still, it's awesome to see it reach this point.
2024-09-27 15:12:37 +10:00
2024-09-22 15:03:34 +10:00
2024-05-19 03:50:57 +10:00
2024-05-19 03:50:57 +10:00
2024-09-22 15:20:08 +10:00
2024-05-19 03:50:57 +10:00

For the feature complete version 1, click here.

Toy v2.x

The Toy programming language is an imperative, bytecode-interpreted, embeddable scripting language. Rather than functioning independently, it serves as part of another program, the "host". This design allows for straightforward customization by both the hosts developer and end users, achieved by exposing program logic through text files.

This repository holds the reference implementation for Toy version 2.x, written in C.

Nifty Features

  • Simple C-like syntax
  • Intermediate AST and bytecode
  • Strong, but optional type system
  • First-class and higher-order functions
  • Extensible via external libraries
  • Can re-direct output, error and assertion failure messages
  • Open source under the zlib license

Syntax

Omitted for review.

Building

Omitted for review.

Tools

Omitted for review.

License

This source code is covered by the zlib license (see LICENSE).

Past and Current Contributors

@hiperiondev - Disassembler, porting support and feedback
@add00 - Library support
@gruelingpine185 - Unofficial MacOS support
@solar-mist - Minor bugfixes
Unnamed Individuals - Feedback

Patrons via Patreon

  • Seth A. Robinson

Special thanks to Robert Nystrom of http://craftinginterpreters.com/ for their fantastic book that set me on this path.

Languages
C 97.7%
Makefile 2.2%