Mamba 4D — The Sovereign Language

PowerShell-native. No Python. Pure venom. D4 Jalava Engine — Temporal Execution.

Keywords

strike — Function Declaration

// Strike with body strike greet(name) { hiss "Hello, World" shed 0 } // Single-expression strike strike add(a, b) -> a + b // Dimensional strike strike[D7] why() { hiss "Because Nathan built it." }

fang / shedskin — Conditional

fang (conviction > 75) { hiss "High conviction." } shedskin { hiss "Recalibrating." } // Else if chain fang (x > 0) { hiss "Positive" } shedskin fang (x < 0) { hiss "Negative" } shedskin { hiss "Zero" }

coil — Loop

constrict i = 1 coil (i <= 7) { hiss f"Dimension D{i}: Active" constrict i = i + 1 }

constrict — Variable Binding

// Simple binding constrict name = "Nathan Brown" constrict conviction = 100 // Typed binding constrict name:pattern = "Mamba" constrict value:scale = 42

hiss — Output

// String output hiss "Mamba initialized." // F-string interpolation hiss f"Value: {x}, Name: {name}" // Expression output hiss conviction

venom / shed / empty

// Import (venom) venom "prism.inference" // Return (shed) shed 42 // Error sink (empty) empty() // Routes to EMPTY# — never crashes

Types

Mamba TypeKeywordC EquivalentExample
scaleIntegerintconstrict x:scale = 42
skinFloatdoubleconstrict pi:skin = 3.14
patternStringconst char*constrict name:pattern = "Mamba"
hoodBooleanintconstrict flag:hood = 1
nest[T]ListT*constrict agents = nest[scale](1,2,3)
den[K,V]Dictionarystructconstrict map = den[pattern,scale]()

Operators

OperatorMambaMeaning
Equals==Equality comparison
Not Equals!=Inequality
Less Than<Less than
Greater Than>Greater than
Less/Equal<=Less than or equal
Greater/Equal>=Greater than or equal
Add+Addition
Subtract-Subtraction
Multiply*Multiplication
Divide/Division

Compilation Pipeline

Source → Binary

// 1. Write Mamba source // test.mb // 2. Compile to C // Mamba\Invoke-MambaCompile test.mb // 3. Compile C to binary // gcc test.c -o test.exe // 4. Run // ./test.exe

PS Module Commands

Import-Module Mamba.psm1 # Compile .mb to .c Invoke-MambaCompile -Path test.mb # Compile and run Invoke-MambaRun -Path test.mb # Validate without compiling Invoke-MambaCheck -Path test.mb

Dimensional Binding

D1 — Plankva Z

strike[D1] physics() { // Base-layer logic, assembly }

D4 — Jalava (Mamba)

strike[D4] compile() { // Temporal execution, bridges }

D7 — Crystal

strike[D7] why() { // Ontological law, the "why" }

Mamba Red — Visual Identity

TokenColorHex
Keywords (strike, fang, coil)Venom Deep#7B0A0A
Errors, CriticalStrike Scarlet#C1121F
Operators, PunctuationCrimson Accent#D72638
CommentsRust Maroon#5A0E0E
Strings, F-stringsAsh Red#B33A3A
NumbersCrimson Accent#D72638
BackgroundDark Canvas#0B0B0B