brolang-cli
v0.4.0
Published
CLI for bro-lang
Downloads
8
Maintainers
Readme
npm i -g brolang-cli
bro listen
bro say "Hello Bro";
bro done
brolang test.bro
hello Bro
This will be ignored
bro listen
// Write code here
bro done
This too
bro listen
bro remember a = 10;
bro remember b = "two";
bro remember c = 15;
a = a + 1;
b = 21;
c *= 2;
bro done
bro listen
bro remember a = 10;
bro remember b = 10 + (15*20);
bro remember c = "two";
bro remember d = 'ok';
bro remember e = nothing;
bro remember f = correct;
bro remember g = wrong;
bro done
bro listen
bro say "Hello World";
bro remember a = 10;
{
bro remember b = 20;
bro say a + b;
}
bro say 5, 'ok', nothing , correct , wrong;
bro done
bro listen
bro remember a = 10;
bro if (a < 25) {
bro say "a is less than 25";
} bro otherwise {
bro say "a is greater than or equal to 25";
}
bro done
bro listen
bro remember a = 0;
bro when (a < 10) {
a += 1;
bro if (a == 5) {
bro say "tech bro", a;
bro skip;
}
bro if (a == 6) {
bro stop;
}
bro say a;
}
bro say "done";
bro done