Skip to content

2dpodcast/hrmpy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hrmpy

This is an implementation of the assembler from Tomorrow Corporation's excellent game Human Resource Machine.

Why?

Why not?

Mostly, I've been looking for something to implement in RPython, and this seemed like a reasonable option.

How?

You can run a program with the untranslated interpreter:

$ python -m hrmpy progs/04-scrambler-handler.hrm inputs/jot10.txt

You can translate:

$ /path/to/rpython/bin/rpython targethrmpy.py

Or with the JIT enabled:

$ /path/to/rpython/bin/rpython --opt=jit targethrmpy.py

And then run the translated version:

$ ./hrmpy-c progs/04-scrambler-handler.hrm inputs/jot10.txt

Tests?

There are (not enough) tests. Run them like so:

$ pip install -r requirements-dev.txt  # To install pytest and friends
$ py.test

About

An implementation of the Human Resource Machine in RPython

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%