A Star Wars themed programming language with a compiler written in Rust.
Hello there ! You will find below an introduction to the HyperSpace Lang (HSL) and the work in progress to add new features.
Here is some quick technicals details : HSL is a strongly typed compiled language which support only 3 types for now : booleans, integers (negative and positive) and strings. Each keyword is a Star Wars quote or reference which makes every program quite funny to read. Finally newlines and spaces are not required but are encouraged for readabilty purposes (which is the aim of the language).
Features
For now HSL supports the following constructs :
- Variables
- Print to console
- Math operations (addition, substraction, multiplication, division and modulus)
- If then else blocks
File extension
Files written in the HyperSpace uses the .hs
file extension. You can find some examples in the examples
folder in order to write your own programs.
Compilation
For now HSL only compiles to ARMv8. The objective in the long term is to compile to multiple targets.