[x3d-public] X3DUOM for glTF? was: Re: [X3D] C++ Object Notation Grammar for parsing. Near completion.
John Carlson
yottzumm at gmail.com
Thu Apr 4 01:33:56 PDT 2024
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++). *What do Holger and
Michalis use to convert glTF to DOM/XML or native structures?* 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. *Is there an X3DUOM for glTF? Maybe we could
create one? Could we convert glTF JSON schema to a glUOM (GL Unified
Object
Model)? 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>.
GlTF expertise welcome!*
What are the priorities? Probably we don't want to maintain too much stuff!
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).
Michalis and I have explored Pascal Object Notation.
Thank goodness for the X3D standard and how people can innovate! Or
renovate!
John
On Thu, Apr 4, 2024 at 1:49 AM John Carlson <yottzumm at gmail.com> wrote:
> Dear Myeong, All,
>
> Here's the C++ Object Notation (CPPON) Grammar based on function bodies
> created by the CppFunctionBodySerializer.js:
>
>
>
> https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/cplusplus/net/coderextreme/CPPONGrammar.g4
>
>
> https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/CppFunctionBodySerializer.js
>
> The next step is to add types and fields from X3D, to create X3DCPPON.
> Then, I will create X3DCPPONLD.
>
>
> CPPON is to XML as X3DCPPON is to XHTML.
>
> CPPON may be considered the JSON of C++.
>
> For X3DCPPON examples, see .h files in this folder:
>
>
> https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/cplusplus/net/coderextreme/data
>
> There are a few I don't handle yet. Let's see if you can find them!
>
> JOhn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20240404/27af9eeb/attachment.html>
More information about the x3d-public
mailing list