rail-lang

Crates.iorail-lang
lib.rsrail-lang
version0.30.2
sourcesrc
created_at2022-06-08 06:22:41.320081
updated_at2023-07-07 00:55:55.140513
descriptionA straightforward programming language. Rail is currently experimental and subject to drastic breaking changes.
homepagehttps://github.com/booniepepper/rail
repositoryhttps://github.com/booniepepper/rail
max_upload_size
id601886
size177,596
Justin "J.R." Hill (booniepepper)

documentation

README

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

Commit count: 306

cargo fmt