We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Cath

From Esolang
Jump to navigation Jump to search
This is still a work in progress. It may be changed in the future.

Cath is a math programing language (so it has +, -, *, /, //, %, ^, x!, x!!, (), >, <, =, >=, <=, != (not equal), ≠ (also not equal), etc...)

it do one thing at 1 tick (so recursing function just be in the loop)

variables

[variable] -> [to set] working each tick P.S. where [] is argument (only to show this is a argument not text)

[variable] = [to set] working once (if activated)

Δ[variable] [->/=] [value] change variable not set

other

{[condition], [to do],
{[condition2], [to do2],
...
{else [to do n]

if statement (these { for umm... you get it. right?)

[function name]() = [to do]

define functions

[something].[something]

something (like in python [X].[Y])

[thing];[other thing]
[something]() = [thing]:[thing2]

to do like this

incrementor loop

x = 0
main() = ∆x -> 1:main()
main()

lists

lists!! like [1, 2, 3] (variable with type list ends with $ or you get error)

get

[list name]$.get([index (starting at 0)])

append

[list name]$.append([value])

length

[list name]$.len([value])

set

[list name]$.set([index],[value])

text

"text"

[variable]# = "hello world!"

IO

out@ -> "hello world"

keyword variable out it outputs (it gives error if you want to get value)

op = in@

keyword variable in it returns input (it gives error if you want to change or set)

Page made by User:Timm