cleanup, docs

This commit is contained in:
root
2026-06-16 12:21:31 +00:00
parent dff1959341
commit ea08d5f28b
296 changed files with 1571 additions and 1940 deletions
+4 -16
View File
@@ -21,22 +21,6 @@ Try the live example in the [YAML demo](../demo/yaml.uce).
Example:
```uce
String source = "app:\n"
" name: UCE Starter\n"
" debug: true\n"
" port: 8080\n"
" paths:\n"
" - site\n"
" - cache\n";
DValue cfg = yaml_decode(source);
cfg["app"]["name"].to_string(); // UCE Starter
cfg["app"]["debug"].to_bool(); // true
cfg["app"]["port"].to_s64(); // 8080
cfg["app"]["paths"]["1"].to_string(); // cache
```
Supported syntax:
@@ -55,3 +39,7 @@ Supported syntax:
Numeric-looking values are stored as strings, matching `json_decode()`'s current behavior. Use `to_s64()`, `to_u64()`, or `to_f64()` when reading numeric config values.
Malformed input raises a request-visible `yaml_decode(): ...` runtime error.
:example
DValue value = yaml_decode("name: Ada\n");
print(value["name"].to_string(), "\n");