What is Net Dust?
Net Dust is a lightweight programming language designed to provide easy access to basic programming features, calculations, and a wide range of APIs. Its syntax is simple and readable, and it supports basic pattern matching along with a safe standard library.
Quick Syntax
Net Dust syntax is line-oriented and based on clear keywords and symbols. The following example demonstrates the language’s main structure:
code start // All Net Dust code must begin with this
bring : // Import modules or packages
print("Hello, Net Dust!") // Output
num // Numeric variable
var // String variable
set // Assign a value to a certain variable
slot // Specify multiple values at once
room // It works like func
end; // Specifies the end of the room
This syntax illustrates basic commands, variable types, and how to begin a Net Dust script.
Modules & Packages
Net Dust uses the bring command to import modules and packages. Official modules and packages can be found on newtem’s official Discord.
Tooling (Interpreter & CLI)
Noctura is the official interpreter written in C# (for Windows) and C++ (for Linux), designed to execute Net Dust code efficiently. Additionally, Noctura includes a dedicated Net Dust engine that allows external libraries to be used, along with built-in libraries within Noctura itself.
// Runtime examples Linux: ./noc nd file.rpp Windows: click the 'Import .rpp' button
Quick start: Noctura is distributed as a single executable and supports all major platforms (Windows / Linux).
Tips & Best Practices
- When using room write end; at the end of the room
- Every .rpp file requires code start