|
Download tasks/data/reverse/1ay1__vibe.c43e8ce/environment/docs/README.md from Lego-X/ProgramGen: direct link, hf CLI and curl.
- Browser
- Download file 2.08 kB
-
https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/1ay1__vibe.c43e8ce/environment/docs/README.md
- Command line
-
hf download hf://datasets/Lego-X/ProgramGen/tasks/data/reverse/1ay1__vibe.c43e8ce/environment/docs/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/1ay1__vibe.c43e8ce/environment/docs/README.md
2.08 kB
VIBE Examples
This directory contains example VIBE configuration files and usage examples.
Valid Configuration Files
simple.vibe
Basic VIBE file demonstrating core features:
- Simple key-value pairs
- Nested objects
- Arrays of scalar values
config.vibe
Complex real-world configuration showing:
- Deep nesting
- Multiple data types
- Arrays and objects
- Comments
- Path-style values
web_server.vibe
Web server configuration example with:
- Virtual hosts
- SSL configuration
- Logging settings
- Rate limiting
database.vibe
Database configuration showing:
- Connection pooling
- Replica sets
- Migration settings
Invalid Configuration Files (For Testing)
These files demonstrate what NOT to do in VIBE. They will fail to parse with helpful error messages.
invalid_array_with_objects.vibe
❌ Will fail: Demonstrates why objects cannot be placed inside arrays
- Shows the common mistake of trying to create arrays of objects
- Includes the correct alternative using named objects
- Error:
"Objects cannot be placed inside arrays. Use named objects instead."
invalid_nested_arrays.vibe
❌ Will fail: Demonstrates why arrays cannot be nested
- Shows attempted multi-dimensional arrays
- Includes correct alternatives for different use cases
- Error:
"Arrays cannot be nested inside other arrays."
Why these restrictions? See The Stability Paradox for the design rationale. Arrays of objects create unstable configurations through index-based references, ambiguous merging, and lack of inherent identity. VIBE forces you to use named objects for stability.
C Examples
example.c
Complete working example showing how to:
- Parse VIBE files
- Access values using dot notation
- Handle errors
- Print configuration structure
Running Examples
Valid examples (will succeed):
Invalid examples (will fail with error messages):
Creating Your Own
- Create a
.vibefile with your configuration - Use the parser to load it
- Access values with
vibe_get_*()functions