User:PythonshellDebugwindow/Sandbox

From Esolang
Jump to navigation Jump to search

"Here" is where I "develop" my esolangs before adding them to the main namespace.

1

HELLO WORLD:

DEF MAIN IMPORT ALL FILES CLOSE MAIN AND DO THING IMPORT MAIN DELETE SELF DELETE HELLO OR PRINT PRINT DELETE PRINT WORLD HELLO CLOSE SELF SELF DEF SELF PRINT CONNECT EXPR CONSTEXPR CONST MAIN END

IMPORT EXPORT -> imports PRINT

DELETE DEF MAIN IMPORT EXPORT AND DO DELETE PRINT DELETE VALUE HELLO DELETE PRINT DELETE VALUE WORLD END END

Operator

Operator is an esolang by User:PythonshellDebugwindow based on defining operators.

Precedence: O, L, R, I.

Examples

These use the Operator Standard Library.

Hello World! in ASCII

_ R {( 0 .1 ) >; ( ( 0 .2 ) >; ( 0 .3 ) )}
.1 R {( 72 .. 101 ) >; ( 108 .. 108 )}
.2 R {( 111 .. 32 ) >; ( 87 .. 111 )}
.3 R {( 114 .. 108 ) >; ( 100 .. 33 )}
.. I {( L %. ) >; ( R %. )}

Cat program

Once; numeric.

_ R {L %.}

Truth-machine

_ R {( 1 %. ) >; ( 1 _ )} where {L}
_ R {0 %.} otherwise

Operator Standard Library

The Operator Standard Library (OSTDLIB) consists of the following operator definitions:

//GROUP operator
( ) O {L}
//IF operator (eval R if L)
? I {R} where {L}
//NOT operator
! L {0} where {R}
! L {1} otherwise
//RTHEN operator (eval R then L, returning L)
<; I {L} where {R}
<; I {L} otherwise
//LTHEN operator (eval L then R, returning R)
>; I {R} where {L}
>; I {R} otherwise
//PRINT operator
%. R _Out{L}
 [[Category:Languages]] [[Category:2020]] [[Category:Unimplemented]] 

LET me PRINT the CURSOR

LET me PRINT the CURSOR is an esolang by User:PythonshellDebugwindow.

Syntax

Each command is one line. Commands are LET, PRINT.

LET v = x sets variable v to x. All variable names are sequences of lowercase letters and underscores, and x can be either a string (example: "ABC", there are no escapes) or a number (examples: 123, 19.99). PRINT v prints the variable v (or undefined if there is no variable v) with a newline.

CURSOR represents the current X-position of the pointer on the screen, and can be used in LET variable assignments or PRINT statements.

Examples

Hello World!

LET h = "Hello World!"
PRINT h

Interpreter

 [[Category:Languages]] [[Category:2020]] [[Category:Unimplemented]] [[Category:Output-only]] [[Category:Total]] [[Category:Unusable for programming]] 

Alcatraz

& A | B ! C

& A | B ! C (or And A Or B Not c or AAOBNC) is an esolang by User:PythonshellDebugwindow.

Ixpreter

def ixpreter(s):
  ioff = 0
  for i in range(len(s)):
    if s[i] == "N":
      print(i - ioff)
    elif s[i] == "n":
      print(end=str(i - ioff))
    elif s[i] == "C":
      print(chr(i - ioff))
    elif s[i] == "c":
      print(end=chr(i - ioff))
    elif s[i] == " ":
      print(end=" ")
    elif s[i] == "l":
      print()
    elif s[i] == "s":
      ioff = i
    elif s[i] != ".":
      print("Error bad character", s[i], "at", i)

Hello

........................................................................c............................c......cs...........................................................................................................c..c