Github
Introductio

1. Variables and Data Types in Wave

In Wave, variables are declared using the var keyword, followed by the variable name and its type. Wave supports a variety of data types, including integers, floating-point numbers, and strings.

Example:

var num: i32 = 42;
var name: str = "Wave";

2. Constants and Literals in Wave

Constants are defined using the const keyword, ensuring that their values cannot be changed once set. Literals are basic values such as numbers or strings used directly in code.

Example:

const MAX_LIMIT: i64 = 1000;
const GREETING: str = "Hello, Wave!";

3. Commenting Style in Wave

Wave supports single-line and multi-line comments. Single-line comments start with //, while multi-line comments are enclosed within /* */.

Example:

// This is a single-line comment.
/*
This is a
multi-line comment.
*/

Language

features
Wave

Sponsors ❤

Tools

Modes

light

light

dark

dark

Sidebar

Backgrounds

default

Default

bg-1

Bg-1

bg-2

Bg-2

bg-3

Bg-3

bg-4

Bg-4

bg-5

Bg-5

Box Design

default

Default

box-1

Box-1

box-2

Box-2

box-3

Box-3