Minimalist Human Resource Machine interpreter
Project description
Human Resource Machine interpreter
This is a Python interpreter for programs from the Human Resource Machine game from Tomorrow Corporation. Within the game, one may copy/paste the source code that is edited visually. This library features a parser for this code, an interpreter, and a translator into TikZ pictures to be included in LaTeX.
>>> from hrm import HRM
>>> hrm = HRM.parse('level-2.hrm')
>>> hrm([1, 0, -2, 'D', 0, 0, 8, 9])
1 0 -2 D 0 0 8 9
>>> from hrm.tikz import tikz, draw
>>> tikz('level-2.hrm', 'level-2.tex')
>>> draw('level-2.hrm', 'level-2.pdf')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hrm-interpreter-1.2.tar.gz
(15.0 kB
view details)
File details
Details for the file hrm-interpreter-1.2.tar.gz.
File metadata
- Download URL: hrm-interpreter-1.2.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
328978f17c8715b4b7e9779e5ba058eaf2caa1f652625018a214f4ddce93ffab
|
|
| MD5 |
da41fd7d17957f1960b9b5e4a7d402ec
|
|
| BLAKE2b-256 |
79c4b6d720b3f411b31c24a94b7b58ee3f0d68d05eb2a426653ddab84862078e
|