manool is a programming language created in 2018 by Alex Protasov.
| #1239on PLDB | 8Years Old |
git clone https://github.com/rusini/manoolPractical programming language with expressive power, in 10 KLOC in C++11 - "MAnool is Not an Object-Oriented Language!"
-- recursive version, MANOOLish "cascading" notation
{ {extern "manool.org.18/std/0.3/all"} in
: let rec
{ Fact = -- compile-time constant binding
{ proc { N } as -- precondition: N.IsI48[] & (N >= 0)
: if N == 0 then 1 else
N * Fact[N - 1]
}
}
in
Out.WriteLine["Factorial of 10 is "; Fact[10]]
}| Feature | Supported | Example | Token |
|---|---|---|---|
| Comments | ✓ | -- A comment | |
| Line Comments | ✓ | -- A comment | -- |
| Semantic Indentation | X |