-
Notifications
You must be signed in to change notification settings - Fork 0
Syntax
cyxigo edited this page Jul 13, 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.
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. */Wi has only 15 keywords:
var if else null true false while for break continue function return new object requireNames in Wi can include _, numbers, and @:
@name
_name
abc123
_1name
super_duper_ultra_long_name_in_snake_case
THIS_IS_ALL_CAPS
camelCase
PascalCaseCode 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.
Next: Values