This content originally appeared on DEV Community and was authored by Grayson Campbell
https://github.com/CampbellSoftware/Tardigrade
Hello. I am Grayson. I recently built a programming language I call Glowscript. It doesn’t have a compiler yet, but runs in a tkinter script. Here is how you can use Glowscript for sorting and messing with data!
Hello World
PRINT Hello World
Let’s break it down. The PRINT function prints Hello World onto the terminal. Pretty straightforward!
Setting Variables
SET x Hello
SET y World
PRINT x y
Let’s break it down. SET sets two variables named x and y with values “Hello” and “World”. Then, PRINT prints them out.
Loops
SET x 0
PLUS x 1
PRINT x
LOOP 2 5
Let’s break it down. SET sets x to 0, and plus adds 1 to x. PRINT prints x to the console. The LOOP function goes to line 2 5 times. In other words, every time you hit LOOP, it’s counter, 5, goes down by 1, and once the counter reaches 0, LOOP does nothing.
And More!
If you want to learn Glowscript, go to https://github.com/CampbellSoftware/Tardigrade now!
This content originally appeared on DEV Community and was authored by Grayson Campbell