Skip to content
Marek Janik edited this page Jun 13, 2017 · 6 revisions

Welcome to the lnx language!

lnx is an interpreted language with parser implemented in C++. It's aim is to be simple, and easy to write (hopefully also easy to read ;) ), and not optimized for efficiency (that'll come later maybe).

I included folder with examples, so it should be easier to start.

Functionality of the language is very limited for now, because I just started working on it, and it's my first language ;)

Here's an example of calculating Fibonacci numbers with it:

#!/usr/bin/lnx

var a: Int = 0
var b: Int = 1
var c: Int
 
print "$(a) $(b) "
 
loop 20
    c = a + b
    print "$(c) "
    a = b
    b = c
end loop

println

Oh, and one more thing... It's just a hobby, won’t be big and professional like python ;)

Clone this wiki locally