Code Naturally with WoodBox

A beautifully simple scripting language designed for readability and rapid development. Write clean, expressive code that just makes sense.

Fast Execution
Easy to Learn
Extensible
100+ Built-in Functions
example.wb
# Calculate Fibonacci sequence add.paste("Fibonacci Sequence:")@Color:'green' # Generate first 10 numbers (fib) = [0, 1] .for i in 2-10: (next) = fib[i-1] + fib[i-2] fib = fib + [next] .end # Display results with colors .for i in 0-10: .if fib[i] % 2 == 0: add.paste("Fib[" + str(i) + "] = " + str(fib[i]))@Color:'blue' .else: add.paste("Fib[" + str(i) + "] = " + str(fib[i]))@Color:'red' .end .end

Why Choose WoodBox?

Designed with developer experience in mind, WoodBox combines simplicity with powerful features

Intuitive Syntax

Natural language-like commands that are easy to read, write, and understand. No more cryptic symbols.

add.paste() .math() .if/.else

Colorful Output

Built-in color support for terminal output. Make your console applications vibrant and readable.

@Color:'red' RGB Support Custom Themes

Powerful Loops

Flexible loop constructs with range-based iteration and conditional repetition modifiers.

.for i in 1-10 .while <@.r-5>

Advanced Random

Comprehensive random number generation with range specification and distribution options.

.randome() Seeding Distributions

Rich Data Structures

Native support for lists, maps, and nested structures with intuitive access patterns.

Lists Indexing Slicing

Lightning Fast

Optimized interpreter with JIT compilation option for high-performance execution.

JIT Compilation Multi-threading Memory Efficient

Interactive Playground

Write and execute WoodBox code directly in your browser. No installation required.

Editor
Output
Click "Run" to execute the code...

Quick Examples

Hello World

Basic output with colors

Math Operations

Calculations and variables

Loops & Lists

For loops and arrays

Number Game

Interactive guessing game

Fibonacci

Sequence generation

All Features

Complete example

Complete Documentation

Everything you need to know to start building with WoodBox

1

add.paste() Function

The add.paste() function outputs text to the console. It supports color modifiers and repetition.

add.paste("Hello World") # Basic output add.paste("Error!")@Color:'red' # Colored output add.paste("Hi")<@.r-3> # Repeat 3 times add.paste("Alert")@Color:'yellow'<@.r-2> # Colored and repeated

Parameters

Parameter Type Description Default
text String The text to display Required
@Color String Color name or hex code None
<@.rX> Integer Repeat count 1

Available Colors

'red' 'blue' 'green' 'yellow' 'cyan' 'magenta' 'white' 'black' '#FF5733'
2

Variables

Variables in WoodBox are dynamically typed and can hold numbers, strings, lists, or other data types.

(A)= 42 # Integer (PI)= 3.14159 # Float (Name)= "WoodBox" # String (Numbers)= [1, 2, 3, 4, 5] # List (Active)= true # Boolean

Variable Rules

  • Variable names must be enclosed in parentheses
  • Names can contain letters, numbers, and underscores
  • Case-sensitive: (Var) and (var) are different
  • No declaration needed - created on first assignment
3

math() Function

Performs mathematical operations and outputs the result directly.

.math(5 + 3) # Addition: 8 .math(10 - 4) # Subtraction: 6 .math(6 * 7) # Multiplication: 42 .math(15 / 3) # Division: 5 .math(17 % 5) # Modulo: 2 .math((A + B) * C) # Complex expression .math(sqrt(25)) # Function call: 5

Supported Operations

+ Addition - Subtraction * Multiplication / Division % Modulo ^ Power () Parentheses