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 ๐
This is the basic command structure for running BroCode in the terminal.
brocode <file_path> [options]
Replace <file_path> with the path to your .bc file and [options] with any desired flags, like --debug or --help.
Use --debug to display the Abstract Syntax Tree (AST) of your BroCode program.
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 ๐ก
Run this command to output the Abstract Syntax Tree (AST) of your BroCode program.
brocode sample.bc --debug