๐ 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 โ
- Start Here: Read What is RESL to understand the fundamentals
- See the Benefits: Check Why RESL for comparisons with other formats
- Learn Syntax: Work through the Syntax Guide sections in order
- Try Tools: Use the CLI to evaluate and format RESL files
- 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: