Simple programming language (WIP).
You need to have the following installed on your system:
- CMake 3.25+.
- A C++ Compiler.
- Git
- Flex
- Bison
git clone https://github.com/mrunix00/SPL.git
cd SPL/
make -j`nproc`
./build/SPL
define x : int = 42;
define y = 42;
define arr : int[] = [1, 2, 3, 4, 5];
define element = arr[0];
define add : function(x : int, y : int) -> int = {
return x + y;
};
if x == 42 {
// do something
} else {
// do something else
};
while x < 42 {
// do something
};
for define i = 0; i < 20; i++ {
// do something
};