C++ Object Notation for general use, specifically: X3D and glTF (I hope)
See .h files in in below link. During C++ compilation, CPPON is #included into a C++ function. https://github.com/coderextreme/CPPON/tree/main/cplusplus/net/coderextreme/data
There are Java, JavaScript and partial C++ parsers in below link. Currently the parsers are based on an ANTLR4 grammar. https://github.com/coderextreme/CPPON/tree/main/cplusplus/net/coderextreme
Here's an ANTLR4 Grammar for CPPON:
https://github.com/coderextreme/CPPON/blob/main/cplusplus/net/coderextreme/CPPONGrammar.g4
Here's how I create C++ from DOM (json parameter is ignored)
https://github.com/coderextreme/CPPON/blob/main/node/CppFunctionBodySerializer.js
https://github.com/coderextreme/CPPON/blob/main/node/X3DJSONLD.js
I have written a CPPON to DOM converter, here:
-
git clone https://github.com/coderextreme/CPPON
-
Download node.js and npm
-
Run
npm install
in the main folder -
Run
npm install
in the cplusplus/net/coderextreme