Blaze
By RedBlaze908
How to install the programming language:
1) go to this link:
2) download the exe
3) download gcc (otherwise the program will not work)
4) start and program
NOTE:
this is the beta of the programming language keep in mind that there will be a lot of bugs and at the moment there are very few functions you can do in the app page, I am trying to create more and more new things quickly and to improve the program and the language as much as possible it will still take a long time before an official 1.0 version but for now you can still fiddle around on it normally.
Read carefully
Bugs or Additions
this programming language will develop with time thanks to the help of the people who will use it, so for ideas of functions to add, bugs or whatever don't hesitate to leave an "Issues" with things to add or bug fix. alternatively there is also in my discord server the possibility to be able to write and talk about it (you can find the server invitation in my github profile page)
Requirements
to make it work, install gcc on your pc
in the beta version 1.0.0 many things still don't work inside the program window they will be put in the next version

All Software Functions
Input
input("%d",&a)
input("%c",&a)
input("%f",&a)
etc...
input equal to c, it is the way in which the user types the text, character or number to send it to input to the computer
Variables
Absolute Number
abs(a)
calculates the absolute number of the value in the variable
Mathematical instructions
a += b
a -= b
a *= b
a /= b
a++
a--
a = b + a etc...
a // b
a % b
a = b
in the first block are the exact same instructions as in the third block only they are shorter so as not to repeat the variable a in the second block (a++) we increment the variable by 1 more (example a = 2, and we do a++, a = 3; same thing with a--) in the fourth block we have an assignment the value of b is copied and written in a, in the third block on the second to last line // means integer division (e.g. 9 // 4 -> 2) while the last one means the rest of the division (e.g. 9 % 4 -> 1)
If
if (a < b):
end if
this is the if allows us to create conditions, we can write as many conditions as we want inside the round but we must take into account that if we want to write the or and we cannot write || && as in other programming languages but to make the work easier and more comprehensible we can write OR and AND, there are no braces in fact to open a block we put the colon, to close the block we put end followed by the name of the function this is valid for all the functions of the language
Else
else
can only be used after the end if allows us to make a second statement i.e. if the first condition was false else tells us 'if that was false try this' and will go for conditions
Elif
elif (a < b):
end if
elif is a condition that incorporates the if and else in a single statement the functions are only the same as the if and else only put together.
NOTE:
you can also write "else if..." it won't change anything at all it was just a way to write less stuff in the code
While
while (a < b):
end while
the while loop is not like the normal c loop (so it repeats until the condition is false) to close a while just write end while
Do While
do:
end do while(a < b)
do while is a loop like while but the code is declared first and then the while starts with do: and ends with end do while
For
for(a = 0 | a < b | a++):
end for
for loop with respect to c we remove the semicolons and put | to make it easier for non-programmers and to better define where one instruction starts and another ends
Logical Instructions
a != b
a == b
!a
a AND b
a OR b
a < b
a > b
a <= b
a >= b
*a
*b etc...
Structure:
a->b
a.b
in the first case we have the NOT same function of C in the second line instead it is used for booleans or if the statement is true it becomes false. in the second block we have AND returns true when both are different from 0 and vice versa for false, OR at least one of the two operators must be true.
Function
func int name():
end func
functions start with func followed by the type you want (not tested with boolean) and then the name, in round brackets you must enter what you want to import from main (what we write in main is equal to c EX: int a = name(a, 1 ,&c) )
Structure
struct name():
end struct()
structures are identical to c there is no way to write a structure like in c with typedef will be introduced later
Break And Continue
break
continue
break exits a loop or an if
continue makes a loop or an if continue
Define
#def
#def to declare a constant outside main like in c
then we have the pointers and what derives from them the structures (it is equal to c)
Len
len(a)
len calculates the length of a string
EX: int a = len(b)
Main
main():
end main
creation of the main
Output - Print
print("Hello World")
print("%d, %c", a, b)
println("Ciao")
p("Hello World")
print print normal as in c (printf in c)
println prints everything the user says but then returns at the end of everything
p is a normal print but to write less you can just write p
Comments
# Comment
comments you write # you cannot make comments on more than one line they will be introduced later
Integer
int a
integers numbers
(1, 2, 3, 4)
Boolean
boolean a = true
boolean b = false
they can have value either true or false
String
str a = Hello World
takes as input a set of characters then a string
Char
char a
it takes only one character
(a, b, c, d, e, f)
Float
float a
numbers with comma
(1,2 | 3,5 | 6,9 | 10,1 | 5,12942)
Absolute Number
abs(a)
NULL
NULL
NULL
NULL
Random
rand a
allows to have a random number inside the variable (integer)
Array
int a[] = {1, 2, 3}
float b[2]
etc...
equal to c, a set of numbers or characters in a single variable