AntiLang

From Esolang
Jump to navigation Jump to search
AntiLang
Designed by User:SpaceByte
Appeared in 2022
Computational class Uncomputable
Reference implementation [1] [2]
File extension(s) {{{files}}}

AntiLang is an esolang created by User:SpaceByte on 7/8/22 (July 8th 2022), inspired by ඞlang, made to prove a point against it. The creator, of AntiLang, believes ඞlang not to be a true esoteric programming language, and should not be considered one, this is because, the "code" in ඞlang, does not affect it's outputs (or inputs), in any manner, its "interpreter", should not be considered one, nor should its concept be considered a programming language, as it does not perform any computational actions based on any inputs, its interpreter is solely a program that receives an input, and prints a character, which should make it a program, and not a programming language. AntiLang was created to show how you can make a functional and simplistic language, very easily, by creating an interpreter in less than two minutes.

Language Overview

AntiLang can only execute output, uses 3 characters, and prints two strings, and can preform a line break, it is not practical for any use, and was not intended for it, it was simply created to prove the point of how you can easily create a functional esoteric language.

Commands

Command Description
a Writes "sus"
b Writes "amogus"
c Makes a line break.

Any characters that are not a c or b are ignored as in the switch case in the interpreter does not do anything with the otherwise, you can create comments but only without those 3 characters.

Examples

Print one string

a Prints "sus"

Print two strings, with a line break inbetween

acb will print:

sus
amongus

As you can see, they are on separate lines.

IDE

User:Yes, the original creator of ඞlang made an IDE in Applesoft Basic. Run it here: [3]

1 HOME:PR#3:S=0
10 PRINT "AntiLang IDE"
20 PRINT "IDE By User:Yes, AntiLang by User:SpaceByte, AppleSoft Basic by Marc McDonald and Ric Weiland, Applesoft Basic in Javascript by Joshua Bell."
30 PRINT:PRINT "INPUT CODE"
40 INPUT ">>";C$
50 PRINT "OUTPUT":PRINT
60 FOR X=1 TO LEN(C$)
70 IF MID$(C$,X,1)="A" THEN PRINT "SUS";
80 IF MID$(C$,X,1)="B" THEN PRINT "AMOGUS";
90 IF MID$(C$,X,1)="C" THEN PRINT:PRINT;
100 S=S+1 
110 NEXT X
120 PRINT:PRINT:PRINT "PROGRAM FINISHED IN ";S;" STEP(S)"
130 GOTO 40
Variables used
S     -     Step count
C$    -     Code input
X     -     Var for FOR statement
LEN(C$) -   Built in function for length of code
MID$(x,y,z) - Built in string function

note: if you type in "SUSSY BAKA" it will output "AMONGUSSUSSUS" 🙂