Il

From Esolang
Jump to navigation Jump to search
Il
Paradigm(s) Imperative, Accumulator-based
Designed by User:Iloveunicorns
Appeared in 2025
Computational class Total
Major implementations Python
Influenced BittyLang, Deadfish, etc.

Il is an esolang was planned to be an esolang with identical vertical lines with different codes, but I didn't find any other than l (108 or U+006C) and I (73 or U+0049)

Language Description

Il is output one number using incrementing or decrementing. It has not special command for outputting, but the end of code outputs the N. Il just in three (or, mahbe, two) commands:

Command Description Short description Short example
I(73) Increments the current number by 1 INC IIII - XKCD
l (108) Decrements the current number by 1 DEC llll - antiXKCD (-4)

(10, or end of code)

Outputs the current number as number (Not ASCII!) print(n) I - output '1'

Shorter, in your words

I (big "i") is +1
l (small "L"> is -1
when code ends number outputs

Implementation (interpreter)

As code

Python

num=0
code=input()
for c in code:
	if c=="l":
		num-=1
	elif c=="I":
		num+=1
print(num)

more compact:

n=0
for c in input():
    n+=c=="I"
    n-=c=="l"
print(n)

As online resource

Visual interpreter in Scratch

[1]

Examples

XKCD Random Number

with comments it will be:

IIII        increment 4 times
end of code outputs it

Without em:

IIII

Hello, World!

With comments:

IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
increment by 72.
just output 72.. but, this is "H"'s ASCII code!

Without:

IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII