Docs Installation Playground Explore AST

Set on System Basis

BroCode CLI Documentation

BroCode CLI makes it super easy to run and debug your BroCode programs right from the terminal. Hereโ€™s a guide to help you get started.


Quick Reference ๐Ÿš€

Usage

This is the basic command structure for running BroCode in the terminal.

BROCODE
brocode <file_path> [options]

Replace <file_path> with the path to your .bc file and [options] with any desired flags, like --debug or --help.

--debug Command

Use --debug to display the Abstract Syntax Tree (AST) of your BroCode program.

BROCODE
brocode your_file_path.bc --debug

This command parses your file and outputs the AST, which is useful for debugging and understanding the structure of your code.

Example Commands ๐Ÿ’ก

1Display AST of a File

Run this command to output the Abstract Syntax Tree (AST) of your BroCode program.

BROCODE
brocode sample.bc --debug
This shows how to visualize the structure of the sample.bc file for debugging.

BroCode ยฉ 2024. All rights reserved.