2026-04-15 15:04:54 +10:00
2026-04-15 14:17:32 +10:00
2026-04-11 02:06:59 +10:00
2026-04-11 01:48:30 +10:00
2024-10-19 15:58:17 +11:00
2024-12-07 07:43:28 +11:00
2026-04-07 12:30:25 +10:00
2026-04-07 22:00:54 +10:00
2026-04-07 12:30:25 +10:00
2024-05-19 03:50:57 +10:00

This is a work in progress, and is not yet fit for purpose. I hope I can get it to a useable state, but personal issues can often make dedicating myself to a project difficult. Your patience and support is greatly appreciated.

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 host's developers 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/JS-like syntax
  • Intermediate AST and bytecode representations
  • Strong, but optional type system
  • First-class functions and closures
  • Extensible with imported native code
  • Can re-direct output, error and assert failure messages
  • Open-Source under the zlib license

Syntax

Watch this space.

(The scripts or tests directory might help.)

Building

Watch this space.

(make and make tests might help.)

Tools

Watch this space.

Documentation

Watch this space.

License

This source code is covered by the Zlib license (see LICENSE for details).

Contributors and Special Thanks

@NishiOwO - Unofficial NetBSD support
@Gipson62 - v1 docs spell checking
@8051Enthusiast - fixAlignment() trick
@hiperiondev - v1 Disassembler, v1 porting support and feedback
@add00 - v1 Library support
@gruelingpine185 - Unofficial v1 MacOS support
@solar-mist - v1 Minor bugfixes
Various Anons - Feedback
@munificent - For writing the book that sparked my interest in langdev

Patreon Supporters

You can show your support and be listed here by joining my Patreon.

Languages
C 97.7%
Makefile 2.2%