sam701 / syconf

A simple configuration language that keeps your config files lean
Apache License 2.0
4 stars 1 forks source link

Enable file content to be hashmap body #9

Closed sam701 closed 4 years ago

sam701 commented 4 years ago

Currently, the file content is either an expression or the inner of the block expression

let x = 3
in [x, 2]

It would be helpful to have valid content like

name: "sherlock"
age: 33
address: {
  street: "baker street"
  house: "221B"
}

It should result in a hash map and be able to be imported like this

let person = import "./sherlock.sy"
in
{
  street: person.address.street
}