Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>BRONew to Visual Studio Code? Get it now.
BRO

BRO

hsn-bro

|
522 installs
| (1) | Free
syntax highlighting and auto complete support for bro-lang
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

bro-lang

bro-lang is an interpreted programming language made for a discord bot called Dora

getting started

to compile bro code you can use:

npm install -g bro-lang
bro filename.bro

or

npx bro

syntax

bro-langs syntax is similar to javascript and lua

your_favorite_language = "python"

if (your_favorite_language == "python"){
    say("try me bro")
}fi{
    say("you better ,stonger, faster")
}

variables

you can declare a variable with var keyword

var i = 0;

or you can just remove the var keyword

i = 0;

Data Strucutres

there are 4 main data structures:

  • string
  • number
  • bool
  • null
i = "string" # string
i = 0        # number
i = true     # bool
i = null     # null

statements

  • if statements:

    you can define if statements like this
    i = 1
    if (i > 0){
        say("its a positive number")
    }fi if( i == 0 ){ # remember there is no else its fi
        say("the number is 0")
    }fi{
        say("its a negative number")
    }
    
  • loops:

    you can define if statements like this
      i = 1
        loop(i < 100){
            say(i)
            i = i + 1
            if (i % 15 == 0) {
                say("fizzbuzz")
            }fi if(i % 3 == 0) {
                say("fizz")
            }fi if(i % 5 == 0) {
                say("buzz")
            }fi {say(i)}
        }
    
  • functions:

    fun sum(a,b){
        return a + b
    }
    say(sum(1,1))
    

Credits

  • thanks to tylerlaceby for creating the Guide to Interpreters!
  • inspired by FaceDev

Created with hsn-bro-coder aka Hasan ☠

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft