General
hi bro is the entrypoint for the program and all program must end with bye bro. Anything outside of it will be ignored.This will be ignored
hi bro
// Write code here
bye bro
This too
hi bro
// Write code here
bye bro
This too
A playful programming language written in Typescript with its own parser, interpreter, and CLI.
npm i -g brocodeRun Bro-code snippets instantly and inspect output in the embedded terminal.
Bro-code is a dynamically typed toy language powered by a parser and interpreter written in Typescript. Use these examples as a quick map of the language.
hi bro is the entrypoint for the program and all program must end with bye bro. Anything outside of it will be ignored.bro this is.nope. yep and nah are the boolean values.say bro to print anything to console.if bro block will execute if condition is yep, otherwise one of the subsequently added else if bro blocks will execute if their respective condition is yep, and the else bro block will eventually execute if all of the above conditions are nah.while bro blocks are executed as long as a specified condition evaluates to yep. If the condition becomes nah, statement within the loop stops executing and control passes to the statement following the loop. Use stop bro to break the loop and next bro to continue within loop.