Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ViliOrg/Vili
A nice and readable data format !
https://github.com/ViliOrg/Vili
cpp cpp17 data-format hacktoberfest stl-containers vili
Last synced: 28 days ago
JSON representation
A nice and readable data format !
- Host: GitHub
- URL: https://github.com/ViliOrg/Vili
- Owner: ViliOrg
- License: mit
- Created: 2017-02-21T15:11:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-23T08:37:39.000Z (about 2 years ago)
- Last Synced: 2024-11-02T18:04:31.298Z (about 1 month ago)
- Topics: cpp, cpp17, data-format, hacktoberfest, stl-containers, vili
- Language: C++
- Homepage:
- Size: 834 KB
- Stars: 27
- Watchers: 4
- Forks: 3
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
- AwesomeCppGameDev - Vili
README
![Banner](https://raw.githubusercontent.com/ViliOrg/Assets/master/banners/vili_banner_small.png)
# Vili
A simplistic readable data format !![build](https://github.com/Sygmei/Vili/workflows/build/badge.svg)
## Description
Vili is a YAML-like data language without all the complexity, it comes with handy features allowing you to describe your data with beautiful tree-structures.
# Examples :
## Animals (Simple tree-like structure)
### Vili file
`Animalia.vili`
```yaml
Animalia:
Chordate:
Mammal:
Carnivora:
Felidae:
Felis:
Domestica:
HouseCat:
name: "House Cat"
size: 24.5
cool: true
Leo:
Lion:
name: "Lion"
size: 280.7
cool: true
Primate:
Pongidae:
Pan:
Troglodytes:
Chimpanzee:
name: "Chimpanzee"
size: 81.6
cool: true
Hominidae:
Homo:
Sapiens:
Human:
name: "Human"
size: 170
cool: false
Arthopoda:
Insect:
Diptera:
Muscidae:
Musca:
Domestica:
Housefly:
name: "Housefly"
size: 0.12
cool: false
```## Countries and Cities (Lists)
### Vili file
`Countries.vili`
```yaml
# Inline
France:
cities: ["Paris", "Marseille", "Lyon", "Nice"]
# Multiline
Germany:
cities: [
"Berlin",
"Hamburg",
"Munich",
"Cologne"
]
# Do however you want
UnitedKingdom:
cities: [
"London", "Manchester",
"Liverpool", "Glasgow"
]
```## Templates
```yaml
# Simple templates (aliases)
template on: true
template off: falseswitch_1: on
switch_2: off# Advanced templates
template color: {
type: "color",
r: 0,
g: 0,
b: 0,
a: 255
}black: color
red: color { r: 255 }
green: color { g: 255 }
blue: color { b: 255 }
yellow: color { r: 255, b: 255 }
```