Pljic++!

From Esolang
Jump to navigation Jump to search

Pljic++! is a programming language created by User:Mmmph! as another thing to do.

Overview

Pljic++! code is executed two characters at a time. The first Character of a command is the command type, and the second is the command data, which is represented in base 36 (letters and numbers). Unrecognized commands are ignored. Pljic++! has 36 variables and 36 labels, which are selected by the command data, and are 0 by default (label position 0 is the beginning of the program). The variables are stored as unsigned 8 bit integers (that loop back to 0 when incremented to 256). Pljic++! is case-insensitive.

Pljic++! assumes code is in Pljic! until the + command is seen.

Commands

  • P prints the internal variable at the data position as ASCII.
  • L label, sets the selected label position to it's position in the program, when seen (but not jumped to), ignore commands until -- is reached.
  • J jumps to the selected label.
  • I takes input from the user as a string, and stores it in the selected variable.
  • C if the most recently mentioned (0 by default) variable is "0", jump to the selected label.
  • + changes from Pljic! to Pljic++!, and does not have data (thus taking up only 1 character).
  • + once Pljic++! mode is active, increment the selected variable by 1.
  • ! ends the program (has no data, but takes up 2 characters).

Examples

Truth machine: +L0P0!!--I0C0L1P0--J1!

Cat program: +L0I0P0--J0

Implementations

None.