general-purpose and systems programming language
FOL is a general-purpose, systems programming language designed for robustness, efficiency, portability, expressiveness and most importantly elegance. Heavily inspired (and shamelessly copying) from languages: zig, nim, c++, go, rust, julia (in this order), hence the name - FOL (Frankenstein's Objective Language). In Albanian language "fol" means "speak".
** FOL IS STILL JUST AN IDEA **
Everything in FOL is declared like below:
declaration<options> name: returntype = { body; };
declaration<options> name: returntype = { body; } | { checker } | { alternative; };
def<> // preporcesr, iports, includes, macros, bocks, definitions ...
var<> // all variables, ints, strings, bools, arrays, vecotrs ...
typ<> // new types, structs, objects, interfaces, enums ...
fun<> // all methods, functions, rutines and subrutines ...
if(condition){} orif(condition){} else{};
loop(condition){};
for(){};
each(){};
case(variable){like(){}; like(){}; else{}};
case(variable){type(){}; type(){}; else{}};
jump();
continue; break; return; yeild;
result; // the default return type of function (already made when a subroutine is created)
default; // a default value for function (in case of error or unreachable)
error; // each routine carries an error variable and can be checked if was raised during call
check(); // checking a function for error
Thanks goes to these wonderful people (emoji key):
Trim Bresilla 🚇 |
This project follows the all-contributors specification. Contributions of any kind welcome!