Nitro Language Documentation

Nitro is a modern, statically typed compiled language designed for performance and simplicity. It combines familiar syntax patterns from languages like Rust, Kotlin, and TypeScript with a focus on readable, maintainable code.

Key Features

  • Static typing with type inference for better reliability
  • Familiar syntax inspired by modern programming languages
  • Powerful type system with generics, options, and traits
  • Built-in collections no need to reinvent the wheel

Quick Start

Hello World

Here's your first Nitro program:

fun main() {
    println("Hello, World!")
}

Try Online

You can experiment with Nitro code in your browser using the Nitro Playground.

More Examples

Explore additional examples in the src/examples folder of the repository to see Nitro in action.

What's Next?

This documentation will guide you through:

  1. Getting Started - Basic syntax, variables, and language fundamentals
  2. Expressions and Operators - Working with values and operations
  3. Functions - Defining and calling functions, including generics
  4. Collections - Lists, maps, sets, and other data structures
  5. Types - Structs, options, enums, and the type system

Ready to learn Nitro? Start with Getting Started!