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.
The HRM language will follow these specificities:
- Comment will be defined using
#
on an empty line. inbox
will give an integer value from a given stack ranging from -999 to 999outbox
will be yield from therun
function.- every value within square bracket will be considered as a number corresponding to a slot id, or a label that identify a slot.
jump
will have an argument to the instruction to teleport the pointer to. blank & comment line will not count.slot
allow to define slot name given an id and a string.
Download the repository
git clone https://github.com/Sigmanificient/HRM-Interpreter.git
cd HRM-Interpreter
Install the package within your python environment
pip install -e .
Copy the hrm configuration files within your sublime settings
cp sublime/hrm.sublime-syntax ~/.config/sublime-text/Packages/User/hrm.sublime-syntax
cp sublime/hrm.sublime-build ~/.config/sublime-text/Packages/User/hrm.sublime-build
copy the hrm color scheme within your sublime settings The color may not fit your theme.