BAL

From Esolang
(Redirected from BASE)
Jump to navigation Jump to search

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

Commands

Command It's Action
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 z
WHILE 1:PRINT 1
DEFINE z
PRINT 0