SFTtech / nyan

Typesafe hierarchical key-value database with inheritance and dynamic patching :smiley_cat:
Other
210 stars 30 forks source link

nyan -> common notation format converter #12

Closed coffenbacher closed 7 years ago

coffenbacher commented 7 years ago

I'm writing a very stripped down version of the aoe2 engine in javascript for some purposes, but I don't want to write a parser just to use nyan files :'( If someone wrote a nyan -> json or something, that would be awesome :D

TheJJ commented 7 years ago

I'm sorry but this is rather impossible.

Converting nyan files to json is trivial (just nested key-value pairs), the interesting part is the typing and execution logic on top of that. Which means you'd have to rewrite the nyan database as a whole in js.