Giter Site home page Giter Site logo

hrm-interpreter's Introduction

Human Resource Machine Interpreter

Game img

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.
  • inbox will give an integer value from a given stack ranging from -999 to 999
  • outbox will be yield from the run 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.

Install

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 .

Sublime Text

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.

hrm-interpreter's People

Contributors

sigmanificient avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.