Ctonia
From Esolang
Ctonia is a program language based on call/cc and stacks. There is variables, though.
Contents |
[edit] 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
[edit] Combinators
i
{^{.}$-!$.};
k
{^{.}$-!$!.};
v
{v(^)$.};
Apply
!$_
I haven't figure out s or others yet.
[edit] Examples
Hello world:
{Hello world!}@

