Getting Started


KorvaqScrip is a beginner-friendly programming language that features a clean and straightforward syntax, making it easy for developers to write clear, concise code. KorvaqScrip files use the .kq file extension, and the language is built around a few simple constructs and data types for fast learning and efficient coding.

Basic Syntax

Statements in KorvaqScrip are terminated with a semicolon (;), and code blocks are wrapped in braces ({}).

Variable Declarations

Data Types

Control Structures

Functions

Functions in KorvaqScrip are defined using the func keyword, accepting parameters and optionally returning values (e.g., func addVal(a, b) { ... }).

Output

Use show to display output in the console (e.g., show "Hello, World!";).

Expressions

KorvaqScrip supports assignment, arithmetic, and logical operations through expressions.

Arrays

Arrays are declared using square brackets ([]) and can hold multiple values (e.g., let numbers = [1, 2, 3];). You can add elements with arrayadd, get the length of an array with arraylength, and access elements using the index (e.g., arrayName[index]).

Comments

Add single-line comments using // to annotate your code.

Linking Files

Use the connect keyword to link multiple .kq files together.

Asynchronous Execution

Run asynchronous code using the async {} block to handle non-blocking operations.

File Management

File handling is done via the read keyword, available in the KorvaqShell environment for reading files from the filesystem.

Examples

Best Practices

KorvaqScrip is crafted to simplify programming without sacrificing essential functionality. Whether you are a beginner or an experienced developer, KorvaqScrip offers the tools you need to write efficient, maintainable code.

For more detailed documentation, check out our documentation page.