[x3d-public] Writing ANTLR4 lexer and parser for ClassicVRML
John Carlson
yottzumm at gmail.com
Mon Oct 23 13:13:56 PDT 2023
On Mon, Oct 23, 2023 at 2:13 PM John Carlson <yottzumm at gmail.com> wrote:
> So far, I'm not handling:
> baseType="bboxSizeType"
> baseType="geoSystemType"
> baseType="loaType"
> baseType="unitIntervalType"
>
SimpleTypes should be handled now, but still not the above.
>
> 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.
>
Inheritance handled, removed extra DEFs and USEs. PROTOs aren't done
right. There may be a problem with parsing PROTO instances (which is a good
reason to choose a simpler grammar).
>
>
> 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/d77368e2/attachment.html>
More information about the x3d-public
mailing list