Docs Installation Playground Explore AST

Set on System Basis

Creating Your First BroCode File

Ready to write your first BroCode program? Itโ€™s easy! Follow these simple steps to create your first file and run it.


Steps to Create Your First BroCode File ๐Ÿ“

1Create a .bc File

Start by creating a new file with the .bc extension, like 'myFirstCode.bc'. This will be your BroCode file.

BROCODE
myFirstCode.bc

Make sure to save the file with the .bc extension so itโ€™s recognized as a BroCode file.

2Write BroCode Syntax

Write your code in the BroCode syntax inside the newly created file.

BROCODE
bro maanle y hai 5;
bro dikha de(y);

Use BroCode's simple syntax like 'bro maanle' to declare variables and 'bro dikha de' to print them.

3Run Your BroCode File

Use the CLI to run your code with the brocode command.

BROCODE
brocode myFirstCode.bc

This will run your BroCode file and display the output in the terminal.

BroCode ยฉ 2024. All rights reserved.