Go Gacr Gei

The program runs in this box:
Put the code in this box:


Go Gacr Gei (GGG) is an esoteric programming language that I made. The
goal of GGG is to be able to pronounce your source code as often as
possible.


s = 0
l = 1
r = 2
b = 3
c = 4
g = 5
d = 6
f = 7
k = 8
p = 9


Variable names can only contain consonants.

"GR" is the variable name I will use in all my examples.

"O" means a number, and "OO" means a string. This is how you define
variables. "GRO" makes GR a number variable, and "GROO" makes GR a
string variable.

"A" means equals. Therefore "GRA" means "GR =". If this is followed by
more letters, these letters are a number. "GRADS" means "GR = 60". If
it is followed by a space and then a string in single quotes, that
string is assigned to the variable. "GRA 'n'" means "GR = 'n'".

"AU" is exactly like "A", but instead of a number or a string after it,
you can put a variable name.

"AI" means not equals. This is not used for assigning things, just for
if statements and loops.

"AUI" is exactly like "AI", but instead of a number or a string after it,
you can put a variable name.

"E" means print. "GRE" prints the variable GR.

"EE" increments a variable.

"EA" decrements a variable.

"EI" prints a variable with a newline after it.

"EO" means less than.

"EU" means greater than.

"I" means input. "GRI" inputs a number or a string depending on what the
variable is defined as.

"U" means if. It is followed by a word with an A, an AI, an AU, an AUI, an
EO, or an EU in it. "UGRAGL" means "if GR = 51". Then comes whatever will
happen if that's true, and then another "U" by itself.

"OA" means a loop. It is followed by a word with an A, an AI, an AU, an
AUI, an EO, or an EU in it. "OAGRAIS" means "loop while GR is not 0". Then
comes whatever is in the loop, and then "OAT" at the end.

"AE" gives you a random number. It is followed by the upper limit of the
random number. The lower limit is always 0. "GRAEG" puts a random number
between 0 and 5 in the GR variable.

To make a single quote inside single quotes, put a * before it.


GGG is not case sensitive, and anything that's not a letter, a space,
or a single quote is ignored (unless it's in quotes).

Anything in (parentheses) is a comment and will be ignored.

You can put "?file=" and then a URL after the URL of this page to take
the code from a file instead of from on the page.

"Go Gacr Gei", the name of this programming language, is a valid program
in itself. Try typing that into the code box and see what you get.


Examples:

This program counts from 1 to 10:
Gro gras oagrails gree grei oat.

This program prints "Hello world":
Groo gra 'Hello world' grei.


Pronounceable variable names (that I can think of), there are 53 of them:

b
c
d
f
g
h
j
k
l
m
n
p
q
r
s
t
v
w
y
z
ll
br
bl
cr
cl
ch
dr
fr
fl
gr
gl
kr
kl
kh
kn
kw
pr
pl
ph
qr
ql
qw
sl
st
sc
sk
sm
sn
sp
sh
tr
vr
wr