Skip to content

achester88/nil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NIL - The Non Intuitive Langauge

created as a project for HackClub's LangJam

NIL is a simple esoteric interpreted programming language written in rust. NIL code is written bottom to top, and reverses the typical syntax with with function calls wrapped in curly brackets and variables written value first this language is not meet to be easy to understand and let alone written

Hello World A Function Call and Returns

/*

;{output} {hello_world} ,Hello,

) {x} hello_world
  ;,World,
  ;{output} x
def (

*/

Getting Started

Prerequisites

  • rustc
  • cargo

Step 1: Clone repo

git clone https://github.com/achester88/nil
cd nil

Step 2: Build via Cargo

cargo build --release

Step 3: Running NIL

cd target/release

Then make the NIL binary executable

chmod +x ./nil

Then to run it, enter:

./nil <file>

Read the docs here: github

References

LLVM tutorial in Rust language

A Gentle Introduction to LLVM IR