/yotta

Primary LanguageForthBSD Zero Clause License0BSD

Yotta

Welcome to Yotta! Yotta is a minimalistic forth-like language. Its most distinctive feature is that it comes with very few primitives:

  • $XX emits the machine code XX given in hexadecimal.
  • ^XX emits machine code that emits machine code XX.
  • : A defines a new word A

The rest is built-up from there. Yotta is split into several parts, in the src directory:

If this piques your interest, I recommend reading the preamble and the forth chapter, and the rest as interests you.

This code supports x86-64 linux and macos:

  • To build and run on linux, use make run-linux.
  • To build and run on intel macs, use make run-macos.