Neon encoder/decoder for go[lang]

Notice: This thread is very old.
mishak
Member | 94
+
0
-

Ahoj,

I plan on working on this starting next month any help is welcome. I think NEON is perfect format for configuration and implementing it in go (language of choice not only for devops) could expand its popularity.

After brief research I found no syntax specification that can be generated into syntax parser. There is some text and few tests. Is anyone willing to write full specification? It would be beneficial for future implementers and to keep track of changes and extensions.

repo: https://github.com/…ak87/go-neon

Last edited by mishak (2014-11-25 21:21)

japlavaren
Member | 404
+
-4
-

Maybe this? http://ne-on.org/

Filip Procházka
Moderator | 4668
+
0
-

@mishak full spec would be awesome. There already is something in nette/neon repo, but I'm not sure if it's the complete grammar. But most of the syntax features can be deduced from neon tests.

Also AFAIK @matej21 wrote alternative for node.js.

Jan Tvrdík
Nette guru | 2595
+
0
-

No, there is no complete grammar. Yes, I intent to write one, mostly to fix some edge cases in PhpStorm's plugin.

David Kudera
Member | 455
+
0
-

@FilipProcházka I don't know about @matej21, but here is node.js version from @bazo ;-)

edit: there is also his topic link

Last edited by David Kudera (2014-11-26 08:29)

David Matějka
Moderator | 6445
+
0
-

@DavidKudera here is my version :)

@JanTvrdík i've already fixed few bugs: https://github.com/…s/fix/parser

Jan Tvrdík
Nette guru | 2595
+
+1
-

@DavidKudera, @matej21 both of those are useless for @mishak as they are not based on a formal grammer (e.g PEG) but written manually. That makes them prone to error and unportable.

bazo
Member | 620
+
0
-

David Kudera wrote:

@FilipProcházka I don't know about @matej21, but here is node.js version from @bazo ;-)

edit: there is also his topic link

but that's not even remotely finished. i asked for help with some regular expressions on this forum, with 0 replies of course, so i left it like it was