[x3d-public] Writing ANTLR4 lexer and parser for ClassicVRML
John Carlson
yottzumm at gmail.com
Mon Oct 23 12:13:50 PDT 2023
So far, I'm not handling:
baseType="bboxSizeType"
baseType="geoSystemType"
baseType="loaType"
baseType="unitIntervalType"
But here's a non-tested grammar (minus the above and inheritance parsing,
which is critical, and extra fields on USE nodes, maybe some other things)
for review, not use in production processes.
https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/python/vrml.g4
How this compares to the VRML encoding, IDK.
John
On Mon, Oct 23, 2023 at 8:46 AM John Carlson <yottzumm at gmail.com> wrote:
> Hmm.
>
> I'm thinking about generating a Classic VRML grammar from X3DUOM using
> Python, and then using ANTLR4 to generate Java code for inclusion in
> various experiments with GraalVM's Polyglot, Truffle, etc.
>
> Hmm.
>
> Hmm.
>
> Hmm.
>
> Maybe in another life.
>
> John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20231023/7fef0067/attachment.html>
More information about the x3d-public
mailing list