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.0.tar.gz
(14.5 kB
view details)
File details
Details for the file hrm-interpreter-1.0.tar.gz.
File metadata
- Download URL: hrm-interpreter-1.0.tar.gz
- Upload date:
- Size: 14.5 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 |
a9d56e064c55c15822b5b7def596406dd751968f9e9e707a259ca24db497dcc2
|
|
| MD5 |
a27ea7e8c8a59b930a52f32d8a928775
|
|
| BLAKE2b-256 |
5be46f89c86dfcf107dae0e73d23445e1a9ff690623463a78e40d37e2be0f379
|