#programming-language #concatenative #interpreter #parser

bin+lib rail-lang

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

52 releases (23 breaking)

0.25.1 Jan 30, 2023
0.24.2 Jan 11, 2023
0.24.0 Oct 31, 2022
0.19.0 Jul 31, 2022

#54 in Programming languages

Download history 3/week @ 2022-10-17 75/week @ 2022-10-24 161/week @ 2022-10-31 11/week @ 2022-11-07 12/week @ 2022-11-14 76/week @ 2022-11-21 2/week @ 2022-11-28 13/week @ 2022-12-05 7/week @ 2022-12-12 61/week @ 2022-12-19 6/week @ 2022-12-26 32/week @ 2023-01-02 46/week @ 2023-01-09 42/week @ 2023-01-16 23/week @ 2023-01-23 115/week @ 2023-01-30

227 downloads per month
Used in 2 crates

GPL-2.0-only

95KB
2.5K SLoC

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.25.1

> 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

Dependencies

~6–13MB
~254K SLoC