LCode

From Esolang
Jump to navigation Jump to search
This article is a stub, which means that it is not detailed enough and needs to be expanded. Please help us by adding some more information.

LCode (aka LoserCode) is a "coding language" made by User:Nitrogen_Dioxide as a joke. The "official" interpreter is made in C#.

The interpreter accepts any type of file extension.

Instructions

Instruction Description
CPR Print the given text
CPRVAR Print the text at the current cursor position's variable's value
MPR Move the current cursor position to the right by 1
MPL Move the current cursor position to the left by 1
MPRNUM Move the current cursor position to the right by the given number
MPLNUM Move the current cursor position to the left by the given number
CPRVAR:NAME Print the given variable (from name)'s value
AD (not including different variants) Add the first number given to the second number given
SB (not including different variants) Subtract the first number given to the second number given
ML (not including different variants) Multiply the first number given with the second number given
DV (not including different variants) Divide the first number given with the second number given
DF Define a variable at the current cursor position, setting the name to the first argument and the value to the second argument
GI:VAR,KEY Prints "Press any key:" to the console, reads the key input given and creates a variable with the key string as value and the first argument as the name
GI:VAR,KEY,NOPROMPT Reads the key input given and creates a variable with the key string as value and the first argument as the name

External resources