PrismarineJS / node-mojangson

A mojangson parser written in node.js
17 stars 9 forks source link

Type conserving parser and simplify function #6

Closed rom1504 closed 3 years ago

rom1504 commented 7 years ago

There should be an option to keep the type information when parsing. Required for #7

rom1504 commented 3 years ago

see pnbt format https://github.com/PrismarineJS/prismarine-nbt/blob/master/test/datatypes.js#L185

https://minecraft.gamepedia.com/Commands#Data_tags spec

rom1504 commented 3 years ago

https://github.com/PrismarineJS/prismarine-nbt/blob/master/nbt.json#L59

rom1504 commented 3 years ago

can reuse https://github.com/PrismarineJS/prismarine-nbt/blob/master/nbt.js#L53

rom1504 commented 3 years ago

needs adaptation there https://github.com/PrismarineJS/node-mojangson/blob/master/grammar.ne#L30