To get started with BroCode, you’ll first need to install the BroCode interpreter. Follow these simple steps to get things rolling and start coding in BroCode!
Steps to Install BroCode 🚀
If you haven't already, you need to install Node.js to use BroCode. It’s a runtime for executing JavaScript code.
Visit https://nodejs.org and install the latest version of Node.js.
Make sure you have Node.js installed before proceeding.
Next, install the BroCode CLI globally using npm. This will allow you to use the 'brocode' command in your terminal.
npm install -g brocode-cli
You can check the installation by running 'brocode --help' to see available commands.
Once installed, you can start using BroCode by typing the 'brocode' command in your terminal to run your BroCode files.
brocode your_file_path.bc
Alternatively, you can use 'npx' to run the code without global installation: npx brocode your_file_path.bc
Example 👨💻
Here’s a simple example to test if BroCode is working after installation.
bro dikha de("Hello, BroCode!");