Whispering‑Code Syntax

Welcome to the secret murmurs of Whispering‑Code. Below you’ll find the whispered grammar that makes this language sing.

1. The Quiet Basics

1.1. Statements

A statement ends with a soft ~ instead of a harsh semicolon.

// a simple hello
say "Hello, world" ~

1.2. Comments

Comments are whispered in parentheses, like a secret to the wind.

( This is a comment )

2. Operators that Murmur

OperatorMeaning
?optional whisper (maybe)
~>passes the hush forward
echoes a thought

Example

// optional greeting
greet ? "hi" ~> whisper "you may be heard" ~

3. Whispering Structures

3.1. Loops

Loops are called loop and close with silence.

loop i from 1 to 5
  say "iteration " + i ~
silence

3.2. Functions

Define a function with hush, end with still.

hush greet(name)
  say "Hello, " + name ~
still

4. Play with the Docs

Feel free to wander to other corners of the Whispering‑Code world: