feat: enhance compiler
- Add comments and test for it - Add semicolon as required end of some expressions - Add new arguments parser - Add multi-file compilation - Add colors in output
This commit is contained in:
+5
-5
@@ -1,16 +1,16 @@
|
||||
bool flag = true
|
||||
bool flag = true;
|
||||
|
||||
if (!flag)
|
||||
printline("buhhh, flag is not true")
|
||||
printline("buhhh, flag is not true");
|
||||
else if (2 + 2 >= 4)
|
||||
{
|
||||
printline ("two plus two is four")
|
||||
printline ("two plus two is four");
|
||||
}
|
||||
else {
|
||||
printline("gotcha")
|
||||
printline("gotcha");
|
||||
}
|
||||
|
||||
{
|
||||
printline("block after")
|
||||
printline("block after");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user