Because humanity shall suffer. Intuitinv't is the dumbest, least intuitive, least consistent programming language ever made by a human.
There is still a lot of things to do
- Create a library system
- Migrate headers & local array to library system
- Add a lot of functions to the std library
- Preprocesor
- ...
If you know how, contribute π³
Download the source and extract it to some folder and open that folder in terminal
# If you dont have tsc installed
npm installed -g typescript
npm install
mkdir out
tsc
node out/main.js <input file> [output file]
--- use, "ivnt"
i π²π·π½ == 0;
mod3 π²π·π½ == 0;
mod5 π²π·π½ == 0;
mod15 π²π·π½ == 0;
[loop];
mod3 == mod (i 3);
mod5 == mod (i 5);
mod15 == mod (i 15);
if(mod15 = 0) = {
writeln ('FizzBuzz');
visit[ endOfLoop ];
}
if(mod3 = 0) = {
writeln ('Fizz');
visit[ endOfLoop ];
}
if(mod5 = 0) = {
writeln ('Buzz');
visit[ endOfLoop ];
}
writeln (i);
[endOfLoop];
i == [ i ++ 1 );
if(i > 100) = {
visit[ loop ];
}
--- use, "ivnt"
text πΌπ½π»π²π·π° == input ();
num π²π·π½ == intMaker (text);
if(num = 0) = {
writeln ('0');
visit[ EOF ];
}, else: {
visit[ loop ];
}
[loop];
writeln ('1');
visit[ loop ];
[EOF];
Data types:
π²π·π½ - integer
πΌπ½π»π²π·π° - string
π¬π±πͺπ» - char
π―π΅πΈπͺπ½ - float
π«πΈπΈπ΅ - boolean
Variable syntax:
name πΌπ½π»π²π·π° == 'test';
name == 'test2';
Function syntax:
functionName ();
Label syntax
[label];
visit[ label ];
List of functions (there will be a lot more soon, when I make library support)
const LEGAL_FUNCTION_NAMES: string[] = [
'writeln',
'join',
'input',
'goodThingsAboutPython',
'boolMaker',
'intMaker',
'mod'
]
Preprocesor:
--- command, "arg", "arg 2" [...]
Importing libraries
--- use, "libname"
danik, 2021