Hello, fellow devs!

I'd like to share with you with a json-like text format for serialization and 
configuration files.

  * Checkout readme and examples: <https://github.com/PixeyeHQ/pods>
  * Nim implementation can be found here: 
<https://github.com/PixeyeHQ/px.nim.pods>



**Current state & Usage**

I wrote it as a part of my tech stack for game development in Nim. Currently it 
is used for describing game objects, engine settings and other configurable 
stuff. By far the Nim implementation works pretty fine for me, though I suspect 
it can be rough on edges. I never did such work before so maybe implementation 
could be better and I would write it cleaner if I sit down coding it now.

**Examples**
    
    
    Unit = (
        name    = 'Alain'
        pos     = (x=5,y=10,z=0)
        power   = 90
        cost    = 10
        kind    = 'Mage'
        items   = [['book'='Homilies and Meditations']];
        friends = ['Roland','Cuthbert']
        dead    = true
      )
    
    
    Run

Another valid form:
    
    
    (
      Unit
        .name = 'Alain';
        .pos.x = 5;;
        .pos.y = 10;;
        .pos.z = 0;;
        .power = 90;
        .cost = 10;
        .kind = 'Mage';
        .friends = ['Cuthbert','Roland'];
        .inventory = [['book'='Homilies and Meditations']];
        .dead = true;
    )
    
    
    Run

Reply via email to