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.

BAL

From Esolang
Jump to navigation Jump to search

BAL (or Basic Assembled Language) is a esolang came from here. Created by User:Ractangle

Commands

SET <name> TO <value> Assigns a variable.
IF <conditon> THEN DO <subroute> Condition command.
WHILE <conditon> Reapeats the folowing code if the condition is true.
PRINT Prints the string next to it.
USER Gets user input.
NOTE Comment.
SUM Math command. You can also do the math with strings
DEFINE Defines a sub.
END Ends the current CHECK operator. Ends the program is not inside a CHECK operator

Examples

Hello, world!

PRINT "Hello, world!{N}"

Truth-machine

SET i TO USER
IF i="0" THEN DO:PRINT 0 > END
WHILE 1:PRINT 1