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.

Alisa⚛

From Esolang
Jump to navigation Jump to search

Alisa⚛ is a programming language made by cat07972 in 2026. Named after a cat.

Overview

Alisa⚛ is a programming language made to fit in ~7 lines of C code. It's a pretty simple programming language with about 5 commands, requires etching the program into the code currently. All variables are 32-bit integers, so numbers bigger than 2.1 billion will overflow. All instructions must have their own line without indentation. There cannot be a space before the = in if and while (while x=1 will work but while x = 1 will not work.) ifs inside whiles must be last statements in the loop body. The maximum name length of variables is 31 characters. There can only be 1024 lines of code.

Instructions

Alisa⚛ uses the following instructions:

Command Name Description
let Variable declaration Declares a variable (supports arithmetics and re-declarations, plus, minus, multiplication and division)
while While loop Starts a while loop.
if Conditional Execution Executes the subcode/block if statement is true.
echo Text print Prints text (or variable). Pretty simple.
end if/while end Used as the end for if and while so subcode/block doesn't mix with the rest of the code.

Examples

Hello, World!

echo Hello, World!

Sub-random Number Generator

let seed = 42
while done=0
let seed = seed * 75
let q = seed / 65537
let q = q * 65537
let seed = seed - q
let r = seed / 6
let r = r * 6
let r = seed - r
let r = r + 1
echo r
let n = n + 1
if n=15
let done = 1
end
end

Truth Machine

let input = 1
echo input
while input=1
echo input
end

External resources