Neon encoder/decoder for go[lang]

5 years ago

mishak
Member | 100
+
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)

5 years ago

japlavaren
Backer | 412
+
-4
-

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

5 years ago

Filip Procházka
Moderator | 4693
+
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.

5 years ago

Jan Tvrdík
Nette guru | 2556
+
0
-

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

5 years ago

David Kudera
Backer | 468
+
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)

5 years ago

David Matějka
Moderator | 5910
+
0
-

@DavidKudera here is my version :)

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

5 years ago

Jan Tvrdík
Nette guru | 2556
+
+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.

5 years ago

bazo
Member | 625
+
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