Human Resource Machine (HRM) Interpreter
Project description
Human Resource Machine Interpreter
Human Resource Machine is a game where you play an employee controlled by a block-like "programming language". The goal of this repository is to create an interpreter for this "programming language".
The syntax is kind of clause to assembly, using jumps for controlling the flow. The inbox and outbox correspond to argument and return value. For each level, a prompt is given and the player code is tested with multiple values.
Overflow occurs when the value is lower than -999 or bigger than 999.
HRM interpreted Language
The HRM language will follow these specificities:
- Comment will be defined using
#on an empty line. inboxwill give an integer value from a given stack ranging from -999 to 999outboxwill be yield from therunfunction.- every value within square bracket will be considered as a number corresponding to a slot id, or a label that identify a slot.
jumpwill have an argument to the instruction to teleport the pointer to. blank & comment line will not count.slotallow to define slot name given an id and a string.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hrm-py-0.1.1.tar.gz.
File metadata
- Download URL: hrm-py-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6659d8f94d5fe61912987c13d88c479f296958f66ecccd2da829586c3475f614
|
|
| MD5 |
b11064aa788fa4e8ab0621b30a9683e4
|
|
| BLAKE2b-256 |
5529ecde9d9621fe877898179eed9334f89671634676c2a88617d42d08da3b87
|
File details
Details for the file hrm_py-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hrm_py-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
643a742661940a5853a6f296b59bcdbb7a62461f064f89626378fbd171ce3e8a
|
|
| MD5 |
6e09ea4e031b316ddd01ed6c34a62ee7
|
|
| BLAKE2b-256 |
0397b0c218630cb18d76bbb82a7f2821acc76908b01e9297ff41a9486890d9ba
|