This is a simple programming language with some inspiration in Rust and C. This compiles first to X86_64 assembly and then to an executable.
This will only run on linux with NASM installed
-
- Types: INT, CHAR, BOOL;
-
- Arithmetic operations: +, -, *, /;
-
- Boolean operations: &&, ||, !;
-
- Comparators: ==, !=, >, <, >=, <=;
-
- Unitary operations: -,!;
-
- Scopes: define by {...}
-
- Variables with strong type checking;
-
- While Loops;
-
- IF, ELSE IF, ELSE;
Here is an simple example of a program in IgnisScript:
let fib : int = 0;
let a : int = 0;
let b : int = 1;
let n : int = 10;
while (n > 0) {
println(a);
let next : int = a + b;
a = b;
b = next;
n = n - 1;
}
Simply run cargo build --release to compile the project.
Simply run cargo run --release to compile and run the project.
This project is under the GNU General Public License v3.0 license(GPLv3).
Check the license in the LICENSE file.