Skip to content

Instantly share code, notes, and snippets.

@cthpw103
Last active November 1, 2017 17:42
Show Gist options
  • Save cthpw103/57238ccbdbbec2403acbd97b2e817a00 to your computer and use it in GitHub Desktop.
Save cthpw103/57238ccbdbbec2403acbd97b2e817a00 to your computer and use it in GitHub Desktop.
BrainPowerLang Specifications (and interpreter)

BrainPowerLang Specifications, by cth103

O-oooooooooo AAAAE-A-A-I-A-U-
JO-oooooooooooo AAE-O-A-A-U-U-A-
E-eee-ee-eee AAAAE-A-E-I-E-A-
JO-ooo-oo-oo-oo EEEEO-A-AAA-AAAA

-'s are ignored.

_ are for comments, like _ Comment

Oooo (function name in BrainPowerCII) (Parameters in BrainPowerCII) calls a function.

AAAE (C File name in BrainPowerCII) imports a custom C module that can be used for other stuff.

A-A-I-A-U (File in BrainPowerCII) imports another source file.

E-eee-ee-eee O closes the application with error code "1".

JO-ooo-oo-oo-oo (text in BrainPowerCII) says something in the debugger.

EEEEO (Application Name in BrainPowerCII) (Parameters in BrainPowerCII) Opens an application.

BrainpowerCII

O = +1 to pointer

E = +20 to pointer

J = -20 to pointer

A = -1 to pointer

Translates to ASCII in the compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment