Skip to content

๐Ÿ“– Getting Started โ€‹

Welcome to RESL! This guide will help you get started with RESL and understand how to use it effectively in your projects.

๐ŸŽฏ Try Your First Expression โ€‹

Start with simple expressions:

resl
5 + 3

Evaluates to: 8

resl
concat("Hello, ", "World!")

Evaluates to: "Hello, World!"

โš™๏ธ Basic Configuration Example โ€‹

Here's a practical configuration using RESL:

resl
{
    port = 8080;
    host = "localhost";
    database = ["host": host, "port": 5432];
    app_url = concat("http://", host, ":", port);

    [
        "server": ["host": host, "port": port],
        "database": database,
        "url": app_url
    ]
}

Evaluates to:

resl
[
  "server": [
    "host": "localhost",
    "port": 8080
  ],
  "database": [
    "host": "localhost",
    "port": 5432
  ],
  "url": "http://localhost:8080"
]

๐Ÿ”Œ Using RESL in Your Applications โ€‹

RESL integrates with applications in multiple languages:

rust
use resl::evaluate;

let result = evaluate("5 + 3").unwrap();
println!("{}", result); // 8
c
#include "resl.h"

ReslValue* result = resl_evaluate("5 + 3");
printf("%lld\n", result->data.integer); // 8
resl_value_free(result);

See Language Bindings for complete integration details.

๐ŸŽฏ Learning Path โ€‹

  1. Start Here: Read What is RESL to understand the fundamentals
  2. See the Benefits: Check Why RESL for comparisons with other formats
  3. Learn Syntax: Work through the Syntax Guide sections in order
  4. Try Tools: Use the CLI to evaluate and format RESL files
  5. Integrate: Add RESL to your projects with Language Bindings

๐Ÿค Contributing โ€‹

Interested in contributing to RESL? We welcome contributions of all kinds! See our Contributing Guide for: