println "Kay let's go!";
Experimenting with programming languages and exploring how to create one.
Warning
The language could change at any moment for now, and could contain many bugs
The language is designed to only "work on my machine" for now, meaning it runs on Windows 11
with WSL, and so it compiles to an ELF
executable file, thus it has been tested only on:
- Ubuntu 22.04.4 LTS
- CPU: Intel i7-8565u
- GPU: Nvidia MX250
- RAM: 16 GB
Therefore it will only compile code down to x86-64
assembly, and it may work on other similar
machines and combination of components.
The language is written in Rust version 1.80.0 using cargo as the build system. It also uses the nasm assembler version 2.15.05 and the ld linker verision 2.38, thus only requiring the following steps to get started:
-
Checking if Rust and cargo are installed and up to version 1.80.0:
cargo --version
If an error stating that the
cargo
command could not be found occurs, try following the installation guide to install it. -
Checking if nasm is installed:
nasm --version
If an error stating that the
nasm
command could not be found occurs, try installing the nasm assembler:sudo apt install nasm
-
Cloning the repo:
git clone https://github.com/StefanoIncardone/kaylang cd kaylang
-
Get to know the features of the compiler by taking a look at the provided help message:
cargo run
See the full language reference and the the full language syntax specification