Skip to content

HyperSpace Lang. A Star Wars themed programming language.

License

Notifications You must be signed in to change notification settings

thibault-cne/hsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HyperSpace Lang (HSL)

A Star Wars themed programming language with a compiler written in Rust.

Introduction

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.

About

HyperSpace Lang. A Star Wars themed programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published