#programming-language #interpreter #concatenative #virtual-machine #parser #version

bin+lib rail-lang

A straightforward programming language. Rail is currently experimental and subject to drastic breaking changes.

60 releases (28 breaking)

0.30.2 Jul 7, 2023
0.30.0 May 22, 2023
0.28.0 Feb 27, 2023
0.24.0 Oct 31, 2022
0.19.0 Jul 31, 2022

#264 in Programming languages

Download history 2/week @ 2024-03-08 1/week @ 2024-03-15 10/week @ 2024-03-29

196 downloads per month
Used in 2 crates

GPL-2.0-only

100KB
2.5K SLoC

License Lines of code GitHub repo size

Rail

A straightforward programming language.

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

See also: dt which is a looser language with a similar syntax.

$ railsh
rail 0.30.2

> 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"]] ? 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/booniepepper

Dependencies

~10–21MB
~308K SLoC