Master Reference (The Deep Dive)
This page provides a technical breakdown of every field, variable, and command logic in the BigC ecosystem.
🌐 BigWeb (Server Context)
Every time a request hits the server, BigWeb populates these System Variables for your logic to use:
| Field | Type | Description |
|---|---|---|
RequestPath | String | The full URL (e.g., /view?page=syntax). |
RequestMethod | String | Either GET or POST. |
RequestBody | String | The raw data sent in a POST request. |
Sbig_Response_Body | Internal | Set via reply with. Holds the text to send back. |
Sbig_Response_File | Internal | Set via reply file. The path to the file to serve. |
📡 BigNet (Networking)
BigNet manages the state of your connection. These commands modify the Global Client State:
user-agent: Sets the browser string.proxy: Routes all traffic through a specific IP/Tunnel.header: Injects custom key-value pairs (like API Keys) into requests.look for:- HTML Mode: Maps CSS selectors to the first matching element's
valueortext. - JSON Mode: Deep-scans the string for a matching key.
- HTML Mode: Maps CSS selectors to the first matching element's
🏠 HBig (Toddler's HTML)
HBig maps simple words directly to HTML5 tags.
| BigC Word | HTML Result | Notes |
|---|---|---|
box class "x" | <div class="x"> | Use end box to close with </div>. |
header "x" | <h1>x</h1> | Used for page titles. |
text "x" | <p>x</p> | Standard content blocks. |
button "x" | <button>x</button> | UI action triggers. |
input "x" | <input placeholder="x"> | User data capture. |
link "x" url "y" | <a href="y">x</a> | Navigation. |
🎨 BCss (Toddler's CSS)
BCss automatically handles unit conversion and shortcuts.
- Auto-PX: Properties like
width,height,padding,margin,font-size, andborder-radiusautomatically addpxif you provide a pure number (e.g.,padding 20->padding: 20px;). - The
centerShortcut: Maps to a Flexbox centered container:display: flex; justify-content: center; align-items: center; - The
styleBlock: Always targets a CSS class name.
🧠 BigC Core (The Interpreter)
The internal Rust engine (Interpreter struct) tracks three critical fields:
variables: A flat map where every value is a String. Numbers are parsed only when math is performed.last_condition_met: A simpletrue/falseflag. Everyifupdates this.oronly runs if this isfalse.loop_stack: A list of active loops. Each loop tracks itsstart_indexandcount(for thenonstucksafety break).
🔒 The Vault (Data Structures)
.dbig(Native): A simple text format.- Keys are wrapped in brackets:
[KeyName] - Values are lines starting with
-and ending with|.
- Keys are wrapped in brackets:
.db(Universal SQL): A standard binary SQLite file. Interacted with via therusqlitedriver.