Skip to content

FlawlessDeveloper/Stackyy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stackyy

A stack based, virtual machine language written in Rust

Description:

Stackyy is a stack based, virtual machine language inspired by Forth and Porth.

Usage:

  1. Download the repo
  2. Run cargo run -- --help for a list of all commands

Building for release:

To use the standard optimizations run cargo build --release.
If the binary size is unsatifying run cargo build --profile=release-opt

ToDo:

  • Parsing completed
  • Basic language features
  • Type checking
  • Control flow (e.g. if while etc.) (Implemented via conditional functions])
  • Functions
  • Reflection (creating function handles from scratch)
  • Included libraries (e.g. processes, io etc.)
  • Speed up parsing
  • Compiling to byte code and running

Maybe

  • Compile to ELF
  • Self-hosted

Create your own Stackyy program:

To create your own Stackyy program you need:

  1. A working Stackyy binary (see Building for release)
  2. A path to put your projects into
  3. To run ./stacky new --name [your project name] --path [your project path]

Example programs:

For example programs look in the examples directory