Concatenative topics
Concatenative meta
Other languages
Meta
Mirth is a strongly typed concatenative programming language inspired by Forth, Joy, Haskell, Lisp, and monoidal category theory. It is developed by typeswitch. For more details: https://github.com/mirth-lang/mirth
||| A simple hello world program to show off the mirth language.
module(examples.hello-world)
import(std.prelude)
import(std.world)
def main {
"Hello, world!" print
}
module(tak.main)
import(std.prelude)
import(std.str)
import(posix.posix)
def tak [ Int Int Int -- Int ] {
dup2 < if(
dup3 1- tak
dip(dup3 rotr 1- tak)
dip2(rotl 1- tak)
tak,
drop2
)
}
def main [ +World -- +World ] {
7 4 8 tak
show print
}
This revision created on Fri, 24 May 2024 18:13:18 by typeswitch (updated syntax)