Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Add support for maps and lists #8

Open
lazopm opened this issue Mar 6, 2017 · 3 comments
Open

Add support for maps and lists #8

lazopm opened this issue Mar 6, 2017 · 3 comments

Comments

@lazopm
Copy link

lazopm commented Mar 6, 2017

It would be great if this was supported. How hard would it be to add basic support?

in:
$list: (1, 2, 3);
out:
{list: [1, 2, 3]}

in:

$map: (
    hello: 1,
    world: 2
);

out:
{map: { hello: 1, world: 3 }}

@JohnLindahlTech
Copy link
Member

Since we are reading line by line currently the first example with list should be possible to implement but the second one with map and multiline could be a bit more hairy. Since it also is a quite similar syntax as normal varaibles.

That said, sadly I am quite bogged down with other work so I will not have the time to implement this currently myself since we are not using this functionallity currently. I would gladly accept a PR with tests to prove it working.

@Billy-
Copy link

Billy- commented Nov 13, 2018

I'll have a go at implementing this

@Billy-
Copy link

Billy- commented Nov 14, 2018

I have used the above fork and published to my private registry - it enables basic support for maps, should anyone need it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants