dryLang
docsplaygrounddownloadgithub

Welcome

  • Home

Getting Started

  • Overview
  • Installation
  • CLI Usage

Basics

  • Overview
  • Variables
  • Data Types
  • Operators
  • Comments

Control Flow

  • Overview
  • Conditionals
  • Loops
  • Error Handling

Functions

  • Overview
  • Definition
  • Scope & Closures

Data Structures

  • Overview
  • Structs & Classes
Docs Menu

Welcome

  • Home

Getting Started

  • Overview
  • Installation
  • CLI Usage

Basics

  • Overview
  • Variables
  • Data Types
  • Operators
  • Comments

Control Flow

  • Overview
  • Conditionals
  • Loops
  • Error Handling

Functions

  • Overview
  • Definition
  • Scope & Closures

Data Structures

  • Overview
  • Structs & Classes

Data Types

DryLang supports standard primitive types natively.

Number

All numbers (integers and floats) are treated as a unified Number type (float64 under the hood).

drylang
count = 10
price = 99.99

String

Strings are enclosed in double quotes. String interpolation is supported with ${}.

drylang
name = "Zaky"
greeting = "Hello, ${name}!"

Raw strings use backticks:

drylang
raw = `no escapes here \n`

Boolean

Use t for true and f for false.

drylang
isActive = t
isDone = f

Unknown (Null)

The unknown keyword represents a null/uninitialized value.

drylang
data = unknown
PreviousVariablesNextOperators