BroLang
BROLANG
A toy programming language written in Typescript
npm i -g brolang-cli
Made by @jonathanalvares
A toy programming language written in Typescript
npm i -g brolang-cli
Brolang is dynamically typed toy programming language built for tech bros.
bro listen
is the entrypoint for the program and all program must end with bro done
. Anything outside of it will be ignored.bro remember
.nothing
. correct
and wrong
are the boolean values.bro say
to print anything to console.bro if
block will execute if condition is correct
, otherwise one of the subsequently added bro otherwise if
blocks will execute if their respective condition is correct
, and the bro otherwise
block will eventually execute if all of the above conditions are wrong
.bro when
blocks are executed as long as a specified condition evaluates to correct
. If the condition becomes wrong
, statement within the loop stops executing and control passes to the statement following the loop. Use bro stop
to break the loop and bro skip
to continue within loop.bro create task task_name
block are stored for later execution. bro execute task task_name
, will execute the function. Where task_name
is the name of the function.