Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sognasm

A simple bytecode interpreter for Sognac, inspired by Cognac, built using Rust and pest parser library

Childish though it may be, Sogansm is decided to be shown off to my friends as my first programming language project.

Thanks for checking out this early version of my project. Feel free to experiment and share your feedback. I appreciate all forms of constructive suggestion from you.

By the way, I'm a beginner of Rust. Perhaps there is full of non-standard code that I'm unaware of. Please let me know so that the next one would not smash their precious keyboard into their head.

screenshot of sognasm code

Usage

Usage: sognasm [OPTIONS] <source>

Arguments:
  <source>  

Options:
  -p, --print          Print the stack while running
  -s, --speed <speed>  the period of each operation 
                       when print is on (unit:ms)  [default: 100ms]
  -c, --code           Print the code
  -h, --help           Print help
  -V, --version        Print version
sognasm source.sasm

Tutorial

learn Sognasm in Y minutes

Todo

  • add more system calls
  • Implement binary bytecode output

About

a simple interpreter for sognac

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages