Nenu Lang
- NL is a natural-looking typed language for durable backend workflows and for changing page behavior in the browser.
- The guide starts with a complete result, then explains each language feature in dependency order.
- Examples build one shared room where several platform-provided users record expenses and settle balances.
Overview
NL is a natural-looking typed language designed for application work. It defines durable entities, validates data, runs backend workflows, and changes page behavior in the browser without switching to JavaScript. Its grammar is deliberately explicit: types come before names, braces construct values, and parentheses call functions or fetch records.
The Room Expense Application
The guide develops one room shared by several people. A room records expenses, each expense names the platform-provided user who paid, shares allocate the cost, and settlements reduce the balance between two people.
| Concept | Role in the example |
|---|---|
Room | The single shared room. |
User | A platform-provided type. The application never declares it. |
Expense | A durable payment made for the room. |
Expense.shares | Child records that allocate one expense among people. |
Settlement | A durable payment from one person to another. |
How To Read This Guide
- Read Start Here once in order to see the complete application flow.
- Use Types And Values before control flow so declarations and expressions are familiar.
- Learn Control Flow before functions because function examples depend on branches, loops, and returns.
- Move through Entities And Data before writing backend API workflows.
- Treat Page Script as a separate browser-safe track with explicit capability boundaries.
- Use Reference for exact lookup, diagnostics, and wrong-versus-correct syntax.
Common Mistakes
- Do not copy backend storage statements into Page Script; call a typed API instead.
- Do not redeclare the platform-provided
Usertype for the room application. - Do not translate JavaScript, Rust, or SQL punctuation into guessed Nenu syntax.
- Do not use this overview as a substitute for the dedicated topic and reference pages.
