Git Product home page Git Product logo

vili's Introduction

Banner

Vili

A simplistic readable data format !

build

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

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

# 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

# Simple templates (aliases)
template on: true
template off: false

switch_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 }

vili's People

Contributors

darnagof avatar nfarid avatar sygmei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vili's Issues

Create a Vili validator

It should be easy to validate a Vili structure through C++ code (or even a Vili metatemplate)

Add inline syntax to Vili

A:
  B:
    c:"Hello"
  D:
    e:3.14
F:
  g:666
  H:[1,2,3,4]

could be inlined to

A:{B:{c:"Hello"},D:{e:3.14}},F:{g:666,H:[1,2,3,4]}

Make better comment system

Allow Vili syntax to have trailing comments such as :

myVariable: "hello" # My comment

And also multiline comments

/*myVariable: "a"
myOtherVariable: "b"*/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.