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.1.tar.gz
(14.7 kB
view details)
File details
Details for the file hrm-interpreter-1.1.tar.gz.
File metadata
- Download URL: hrm-interpreter-1.1.tar.gz
- Upload date:
- Size: 14.7 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.60.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cdf3944ece844da9c650b1dc32292c7bc2d87a5e3f54a54eaaf7fc6bd5c00d2
|
|
| MD5 |
b4793cd55345bcc7206d3dc302e18fbf
|
|
| BLAKE2b-256 |
6d8e4c108a6e3bfca0c1720878673edd674ff9176f6ff52877492a3993d703c2
|