Skip to content

winterthediplomat/hrm-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HRM Interpreter

Simple interpreter for the assembler language described in Human Resource Machine.

This interpreter is intended to be used to verify hrm-compiler, especially optimizations (unreachable/not executed code removal, jump optimizations...)

Todo List

  • implement operations
  • implement json-formatted code
  • implement json-formatted input
  • output interpreter state as json at the end of execution
  • insert debugging hooks (brakepoints, tracepoints)
  • (maybe) execute source code directly

How can I run my code with your interpreter?

  1. Install hrm-compiler
  2. Run hrmc <mysourcefile.hrm> - it will generate the json-formatted version of the code executed by hrm-interpreter
  3. Run cargo run -- --code <mysourcefile.json> --input <myinputfile.json>

About

Interpreter for the Human Resource Machine machine language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages