dryLang
docsplaygrounddownloadgithub

Getting Started

  • Home
  • Getting Started
  • Setup

Language Basics

  • Variables
  • Types
  • Operators
  • Comments
  • Strings

Control Flow

  • Control Flow
  • Loops

Advanced Concepts

  • Functions
  • Structs
  • Collections
  • Modules
  • HTTP Server
  • Database

Reference

  • Built-ins
  • Error Handling
  • Errors

Examples

  • Hello
  • Variables
  • Functions
  • Control Flow
  • Structs
  • Arrays Maps
  • Try Err
  • Imports
  • Math
  • Strings
  • Http Server
  • Database
  • File Io

Templates

  • Automation
  • Cli Tool
  • Crud
  • Fetch Json
  • File Server
  • Hello
  • Html Render
  • Rest Api
Docs Menu

Getting Started

  • Home
  • Getting Started
  • Setup

Language Basics

  • Variables
  • Types
  • Operators
  • Comments
  • Strings

Control Flow

  • Control Flow
  • Loops

Advanced Concepts

  • Functions
  • Structs
  • Collections
  • Modules
  • HTTP Server
  • Database

Reference

  • Built-ins
  • Error Handling
  • Errors

Examples

  • Hello
  • Variables
  • Functions
  • Control Flow
  • Structs
  • Arrays Maps
  • Try Err
  • Imports
  • Math
  • Strings
  • Http Server
  • Database
  • File Io

Templates

  • Automation
  • Cli Tool
  • Crud
  • Fetch Json
  • File Server
  • Hello
  • Html Render
  • Rest Api

dryLang Documentation

Welcome to the official dryLang documentation. dryLang is a minimalist, dynamically-typed programming language compiled to bytecode and executed on a stack-based virtual machine.

Table of Contents

  1. Getting Started
  2. Variables & Constants
  3. Data Types
  4. Operators
  5. Strings
  6. Control Flow
  7. Loops
  8. Functions
  9. Collections
  10. Structs
  11. Error Handling
  12. Modules
  13. Built-in Functions
  14. HTTP Server
  15. Database
  16. Comments
  17. CLI Reference
  18. Error Messages

Design Philosophy

dryLang follows the Writeless, get more principle — Writeless, get more.

  • Go inspired: simplicity, single-binary output, fast compilation
  • Python inspired: clean variable naming, dynamic typing
  • JavaScript inspired: ${} string interpolation
  • All compressed to the absolute minimum syntax

Every keyword is 1–4 characters. Every built-in function is 1–4 characters. No exceptions.

What Can dryLang Do?

  • HTTP Server — Built-in op() starts a web server (powered by Go's net/http)
  • SQL Database — Built-in db() connects to SQLite, MySQL, or PostgreSQL
  • HTTP Client — Built-in req() fetches data from any URL
  • JSON — Built-in json() parses JSON into native maps/arrays
  • Module System — Import local files, URLs, or directly from GitHub repos
  • File I/O — Read, write, list, and delete files
  • System Commands — Execute shell commands, read env variables
  • Advanced Math — sqrt, pow, trig, log via math()
  • 38 Built-in Functions — all with 1–4 character names
NextGetting Started