Skip to content

dandax123/MARIE-Rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MARIE parser and interpreter

To learn all about MARIE: read more...

Usage

cargo run [FILENAME] To run other examples, visit the examples\working directory

Example

MARIE program to square a number:

Input
Store X
Store Y
Store G

Loop, Load Y / load y
Subt Z /accum = y - 1
Store Y
Skipcond 400
Jump Square
Jump End

Square, Load X
Add G
Store X
Jump Loop

End, Load X
Output
Halt

X, Dec 0
Y, Dec 0
G, Dec 0
Z, Dec 1

TODO:

  1. Add support for JUMP, SkipCond and functions (Done)
  2. Add support for JNS, LOADI, ADDI

About

A parser and interpreter for MARIE language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages