cb-lang
v0.1.0
Published
Code Basics Language
Maintainers
Readme
cb-lang
cb-lang is a CLI for the Code Basics Language.
It supports:
- interpreted execution
- native compilation (Zig fast-path when available, otherwise C backend)
Install
npm install -g cb-langUsage
Run interpreted mode:
cb-lang ./program.cbCompile to native binary:
cb-lang compile ./program.cb -o ./program.out
./program.outOptional compiler output retention:
cb-lang compile ./program.cb -o ./program.out --emit-c ./program.c
cb-lang compile ./program.cb -o ./program.out --emit-zig ./program.zigNative toolchain requirements
- Zig fast-path: install
zig(optional) - C fallback backend: install
clangorgcc
If Zig is not available, cb-lang automatically compiles with the C backend.
