Simple and basic compiler of Djinn language to generate native code binaries with LLVM support.
function int32 add(int32 a, int32 b) {
ret a + b;
}
function int32 main() {
int32 counter = 0;
while (counter < 10 ) {
printf(add(counter, 1));
counter++;
}
if ( counter < 10 ) {
printf("counter = %d", counter);
ret counter;
}
ret 0;
}
- Functions
- Imports
- If
- Else
- Switch/case
- Basic Types
- Integers
- Floating-point numbers
- Strings
- Booleans
- Characters
- Custom types
- Structs
- Enums
- Classes
- Interfaces
- Abstract classes
- Generics
- Arrays
- Loops
- For
- While
- Do-while
- For
- Standard Library
- Lists/Sets
- Maps/Dictionaries
- Compile time expressions
- Memory Management