Rational-number type with continued-fraction rounding.
Written in Lateralus — a statically typed, pipeline-oriented programming language.
# install the lateralus toolchain (one-liner)
curl -sSL https://lateralus.dev/install.sh | sh
# clone and build
git clone https://github.com/bad-antics/ltl-rational.git
cd ltl-rational
lateralus run main.ltl.
├── .gitattributes
├── LICENSE
├── README.md
└── main.ltl
See main.ltl for the entry point.
Lateralus compiles straight to C99, LLVM IR, JavaScript, and WebAssembly,
so a tool written in it runs anywhere those targets run. The pipeline
operator (|>) makes data-flow code read top-to-bottom:
let result = input
|> parse
|> transform
|> filter(|x| x.is_valid())
|> collect_into_list()
MIT. See LICENSE.
- Main language repository: bad-antics/lateralus-lang
- Standard library: bad-antics/lateralus-stdlib
- Documentation: lateralus.dev