Skip to content
cyxigo edited this page Jul 12, 2026 · 5 revisions

Wi's syntax is C-like, meaning it feels familiar to anyone who has used C, C++, C#, Java, or similar languages.

Comments

Wi comments are just like in other C-like languages - single line comments start with //:

// This is a single line comment.

And block comments start with /* and end with */:

/* This is an amazing block comment. */

Keywords (Reserved words)

Wi has only 15 keywords:

var if else null true false while for break continue function return new object require

Names

Names in Wi can include _, numbers, and @:

@name
_name
abc123
_1name
super_duper_ultra_long_name_in_snake_case
THIS_IS_ALL_CAPS
camelCase
PascalCase

Blocks

Code in Wi is organized into blocks. A block begins with { and ends with }

{
    var a = 10;
    var b = "b";
    // and some other code...
}

Blocks are used in functions bodies, control flow statements (if, while, for), etc. Each block has its own variable scope.

Clone this wiki locally