A Interpreted programming language made in C#, inspired by Lua, C#, and JavaScript
This language is very unstable and will sometimes not run even tho everything is by the grammar
Please do not use this as an example on how to create a programming language
This language is currently missing some features a standard programming language would have, as it is not finished
- Download the .exe file in the Releases
- Open up a command prompt in the same directory as the exe
- Run: bruhlang "path/to/file"
- Or just drag the text file onto the .exe
- Optionally, you may add the -d flag to get debug information
var foo = "bar";
if statement {
} else if statement2 {
} else {
}
for i in start, end {
}
You can also specify a increment amount
for i in start, end, increment {
}
Break and continue don't exist yet
while statement {
}
if statement1 or statement2 and !statement3 {
}
+ - * / ^ %
= += -= *= /= ^= %=
>= == <= < > !=
++ --
.. ..=
Last row is for strings
A "real" version doesnt exist yet, but you are allowed to do this, as logical operators don't only return booleans
var x = 1 == 1 and "1 is equal to 1" or 1 > 2 and "1 is bigger than 2";
print(x)
Would output "1 is equal to 1"
Doesn't exist yet.
function foo(bar) {
return bar + 1;
}
print(foo(1))
print("hello", "world")