POV-Ray : Newsgroups : povray.pov4.discussion.general : Parser Options : Parser Options Server Time
12 Nov 2025 18:02:37 EST (-0500)
  Parser Options  
From: Bald Eagle
Date: 12 Nov 2025 10:55:00
Message: <web.6914ad23186dc04c76d02faa25979125@news.povray.org>
With regard to how SDL 4.0 would be written, lexed, tokenized, parsed, etc.

ANTLR seems very popular
and people have supplied a ton of grammars for it
https://github.com/antlr/grammars-v4/
maybe we can look into defining our grammar, and even soliciting some help.

KDL looked very interesting

https://kdl.dev/

One thing I noticed which seemed very scene-development / experiment-friendly
was:
"On top of that, KDL supports /- "slashdash" comments, which can be used to
comment out individual nodes, entries, or child blocks:"

Anyway, mostly wondering if we can use one of those parser-generator things, or
if we really need to keep our hand-rolled one.

-BW


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.