Ctonia
Jump to navigation
Jump to search
Ctonia is an esoteric programming language by User:Zzo38 based on call/cc and stacks. There are variables, though.
Commands
- alphanumeric characters are to write a variable name
- {} to create a block
- () for dealing with variables
- , remove variable name
- ^ duplicate
- _ discard
- $ swap
- ! call/cc
- . call/return value
- # write a numbers
- < input
- > output
- + add
- - subtract
- * multiply
- @ out string
- ; clear state, but keep the codes
- ~ debug
Combinators
i
{^{.}$-!$.};
k
{^{.}$-!$!.};
v
{v(^)$.};
Apply
!$_
I haven't figure out s or others yet.
Examples
Hello world:
{Hello world!}@