typeswitch-dev / yotta

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:BSD Zero Clause License


Languages

Language:Forth 91.6%Language:Assembly 7.5%Language:Makefile 0.7%Language:C 0.2%