CLI Reference ============= The ``bear`` binary is the single entry point for all BearVM operations. Usage ----- :: bear Run via interpreter bear ast Print AST as unicode tree bear jit JIT compile and run bear qbe Emit QBE IR bear qbe -c Compile with QBE + cc bear llvm Emit LLVM IR bear llvm -c Compile with llc + cc bear version Show version and quit Commands -------- ``bear `` Runs the program through the interpreter. No external dependencies required. ``bear ast `` Parses the file and prints the AST as a unicode tree. Useful for inspecting how the parser has understood a program. ``bear jit `` JIT-compiles and runs the program. Only available on aarch64 macOS (Apple Silicon). See :doc:`backends`. ``bear qbe `` Emits QBE IR to stdout. Requires QBE to be installed. ``bear qbe -c`` Compiles the program to a native binary using QBE and ``cc``. Requires both QBE and a C compiler on ``PATH``. ``bear llvm `` Emits LLVM IR to stdout. Requires LLVM to be installed. ``bear llvm -c`` Compiles the program to a native binary using ``llc`` and ``cc``. Requires both LLVM and a C compiler on ``PATH``. ``bear version`` Prints the BearVM version and exits.