alpha code is a project started by luc de wit in februari 2020, its based on the programming language "zetaCode" wich was made by joseph catanzarit.
zetaCode aimed to be a simple language, interpreted in python wich looked like BASIC
alphaCode on the other hand aimes for the same but improved, its written in C to gain alot more performance, and it has more advanced features like variables and markers
run a script .ac script:
alpha run folder/example.ac
get current version:
alpha version
alpha code is based on simple comands, that are executed from top to bottom.
however, alpha code is able to change the line it is reading, while executing using the goto command
here is a list of the currently available commands
comments are defined using #'s, and are allowed to put inline after another command
#this is a comment
goto 1 #this is a inline comment
print statements are made using the print keyword, and then the string to print it is also able to print a variable
let age 18
print "hello world"
print age
exit statements quits the program and mentions what the exit code is
the exit code is usually 0 if the program ran normally, it needs 1 int argument
representing the exit code
exit 0
goto statements change the line number, where the program is currently running
this way you can make loops, and functions
#go to line 5
goto 5
let statements let you create a variable with a name and a value wich can be
a number or a string
let name "your mom"
let age 82
get statements let you get information from the user via console input
and then store it in a variable
get name
#name is now a variable with a name
debug is a command that lets you print every single variable that are
currently available, it doesnt need any arguments
get name
let age 18
debug