hiljusti / rail

Rail programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License Lines of code GitHub repo size

Rail

A straightforward programming language.

Rail is an experimental concatenative programming language and virtual machine. It is under wild development and zero stability between versions is guaranteed.

See also: The dt language that uses Rail as a virtual machine.

$ railsh
rail 0.24.0

> 1 1 + print
2

> [ [ n ] -> n print " " print n 2 * ] "print-and-double" def

> 1 [ print-and-double ] 7 times
1 2 4 8 16 32 64 

> [ [ false ] [ "bye" ] [ true ] [ "hi" ] ] opt println
hi

Installation

$ cargo install rail-lang
$ railup bootstrap

Credits

Available under GPL v2.

A side quest of J.R. Hill | https://so.dang.cool | https://github.com/hiljusti

About

Rail programming language

License:GNU General Public License v2.0


Languages

Language:Rust 99.9%Language:Shell 0.1%