<div dir="ltr"><div dir="ltr"><div dir="ltr">Note that I fully expect that there will be a .glh file extension for glTF-like C++ Object Notation (which is in C++) to compete with glTF JSON (which is in JavaScript) as well! First though, I've got to convert glTF to DOM to C++ (I've done X3D JSON to DOM to C++). <b>What do Holger and Michalis use to convert glTF to DOM/XML or native structures?</b> Can we do one more step and convert to C++? I'm pretty sure I've got a "subset of a C++" parser that works well on around 170 files. So a C++ loader into a data structure is next. <b>Is there an X3DUOM for glTF? Maybe we could create one? Could we convert glTF JSON schema to a glUOM (GL Unified Object Model)? <a href="https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#appendix-a-json-schema-reference">https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#appendix-a-json-schema-reference</a>. GlTF expertise welcome!</b><div><br></div><div>What are the priorities? Probably we don't want to maintain too much stuff!<div><br></div><div>Hey guys, there's no JSON schema standard, so I'm relying on C++. I have a generic parser, and now I'm looking at extending to specific domains, like X3D and glTF. The parser is written in ANTLR4, which is targetable to 10 other languages, with visitor pattern and listeners generated (I haven't done the latter 2 yet, just a Java parser for now).</div><div><br></div><div>Michalis and I have explored Pascal Object Notation.</div><div><br></div><div>Thank goodness for the X3D standard and how people can innovate! Or renovate!</div><div><div><br></div><div>John</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 4, 2024 at 1:49 AM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear Myeong, All,</div><div dir="ltr"><br></div><div dir="ltr">Here's the C++ Object Notation (CPPON) Grammar based on function bodies created by the CppFunctionBodySerializer.js:</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/cplusplus/net/coderextreme/CPPONGrammar.g4" target="_blank">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/cplusplus/net/coderextreme/CPPONGrammar.g4</a></div><div dir="ltr"><br></div><div dir="ltr"><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/CppFunctionBodySerializer.js" target="_blank">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/CppFunctionBodySerializer.js</a><br></div><div dir="ltr"><br></div><div>The next step is to add types and fields from X3D, to create X3DCPPON. Then, I will create X3DCPPONLD.</div><div><br></div><div><br></div><div>CPPON is to XML as X3DCPPON is to XHTML.</div><div><br></div><div>CPPON may be considered the JSON of C++.</div><div><br></div><div>For X3DCPPON examples, see .h files in this folder:</div><div><br></div><div><a href="https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/cplusplus/net/coderextreme/data" target="_blank">https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/cplusplus/net/coderextreme/data</a><br></div><div><br></div><div>There are a few I don't handle yet. Let's see if you can find them!</div><div><br></div><div>JOhn</div></div></div></div>
</blockquote></div></div></div>