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. 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.
Download the repository
git clone https://github.com/Sigmanificient/HRM-Interpreter.git
cd HRM-InterpreterInstall 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-buildcopy the hrm color scheme within your sublime settings The color may not fit your theme.
