Concatenative language
Concatenative topics
Concatenative meta
Other languages
Meta
Concata is a stack-based concatenative functional programming language inspired by Elixir, Forth and Joy. It is interpreted and runs on a VM, aiming to offer a readable and user-friendly stack-based programming experience. Concata is still a work-in-progress, but hopefully will be released soon at [[https://github.com/lordoftrident/concata|https://github.com/lordoftrident/concata]]. == Examples == === Hello world === [{ "Hello, world!\n" Stdout Write }] === Hello world (using the standard library)=== [{ uses std/io "Hello, world!" io.PrintLn }] === Counting to 10 === [{ 1 10 ... for n => [n] "%v\n" Fmt Stdout Write }] === Factorial === [{ fun Fact 0 => 1 fun Fact n[Uint] => n 1 - Fact n * [5 Fact] "%v\n" Fmt Stdout Write }] === Factorial (using the standard library) === [{ uses std/io std/range fun Fact n[Uint] => 1 n ... 1 // range.Product 5 Fact io.PrintLn }]
Describe this revision:
Save