JSFlak

From Esolang
Jump to navigation Jump to search

by User:I am islptng
This esolang's purpose is to confuse JS programmers. File extention is . js note that space!

The esolang, inspired by Brain-Flak, uses 6 characters, same as JSFuck.

However, the syntax is completely different.

Syntax

This esolang uses 3 stacks, call them X,Y and Z. Instructions operate on X by default.

      ...[x]   Ignore previous and evaluates to x instead.
      ...()    Prints previous as a character.
      ...(x)   While x is positive, executes the previous instruction.
      (x)   Pushes and evaluates to -x.
      []    Pop. (Popping from empty stack returns 0.)
      [x]   Prints x as a number.
     !...   Operates on Y instead.
    !!...   Operates on Z instead.
    !+...   Increments the result.
    ...+... Command connection, returns the sum.

Examples

Currently none.

Interpreter

Try it online!