stackathon 0.4.1

The interpreter for the Stackathon language
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented1 out of 5 items with examples
  • Size
  • Source code size: 74.5 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.17 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • RishabhOke-Dev

The Stackathon Library

Holds all the code to run stackthon snippets and files

This library makes it easy to use stackathon in any application

Usage

Usually you will use the run_string() function.

use stackathon::run_string;

run_string("2 2 + print".to_string());
//Expected Output: 4
run_string("\"hello \" \"world\" + print".to_string());
//Expected Output: "hello world"

Modules

  • 'lexer': Handles tokenizing valid stackathon source code
  • 'vm': Handles running the tokens given by the lexer
  • 'types': Defines types used throughout the library
  • 'serial': Handles serializing libraries efficiently