JUSTIF

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Justif & Recursion (or simply JUSTIF) is an esoteric programming language created by Gerson Kurz, where control flow is limited to if-else statements and recursion.

Examples

Hello, world!

~1?.0=_,.$="Hello, World",=2:~2?.1!.0?>.1!.0,._+1,=2:0:0

Fibonacci sequence

This program outputs the first 10 numbers of the sequence.

~1?.2=$,.0=1,.3=$,=2:~_?+._=10?!.0,.1=.$,._+.3,.0=.$,.$=.1,.2+$,
=_:0:_

atoi function

~1?.2="1182",
.0=_,.1=$,=3,
!.$:~2?.3=.$!
.0,*.$=47?+.3
=58:0:~3?=2?.
$-48,.1*10,.$
+.3,.0+1,=3:0
:I AM JUSTIF_

External resources