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.

QuickLang

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

QuickLang is an esolang.

Commands

Instructions start with a . and end with a ;.

.out is the output, while .end ends the program.

Other instructions include:

structs info
.in take input
.if:...{...} if the instruction is 1, it does what is in the braces, if it's zero then it just ignores the braces
.loop:...{...} same as if, just loops until zero
.add adds one
.sub subtracts one
@var variables begin with an @ symbol

Anything not starting with . or @ is a comment (just don't use ., ;, or @ in a comment)

Examples

Hello World:

.out:"Hello, World";.end;

Truth-machine:

@var = .in;
.if:@var{.loop:@var{.out:@var;}}
.out:@var;
.end;

A+B Problem:

@a = .in;
@b = .in;
@i = @b
.loop:@i{
  .add:@a;
  .sub:@i;
}
.out:@a;
.end;

XKCD Random Number:

.out:"4"; numbers also work
.end; example: out:4