C Basic is a small programming language with a readable and intuitive syntax that makes it easy for beginners to learn to code.
It is a high-level, interpreted and statically-typed language written in Python3 with PLY. It was designed for a compilers course at Tecnologico de Monterrey.
It supports various fundamental programming concepts such as variable-declaration, function calling, conditional statements, loops, proper order of operations, and recursion. But it also supports more complex things like multidimensional arrays; expressions inside array parameters: arr1[2 + var1][2][2] exponentiation x ** y and modules x % 10.
The code can be found in repl.it, where you click the "Run" button and then enter the name of a program to compile and run it.
int var1, var2 = 0
int var3[5]
float var4[2][2][2] = {1, 2, 3, 4, 5, 6, 7, 8}
var3[2] = 2 + 2 * (var2 - 4)function add() {
// Do something
}
add()// Single line Comment
/*
Multiline Comment
*/input(var1, var1, var3[2])
print("Hello, World", var1, 2 * 2)for(int i = 0; i < 3; i++) {
// For loop
}
while(i==0) {
// While
}
do {
// Do while
} while(i == 0);if(a == 1) {
// if
} else if (a == 2) {
// else if
} else {
// else
}Some programs can be found in the examples folder.