POV-Ray : Newsgroups : povray.pov4.discussion.general : Parser Options Server Time
12 Nov 2025 18:02:37 EST (-0500)
  Parser Options (Message 1 to 2 of 2)  
From: Bald Eagle
Subject: Parser Options
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

From: Bald Eagle
Subject: Re: Parser Options
Date: 12 Nov 2025 16:25:00
Message: <web.6914fae935124bee7f81dbac25979125@news.povray.org>
I'm dyin' :

https://tomassetti.me/why-you-should-not-use-flex-yacc-and-bison/

"Can you even imagine the quality of code that was written and fixed for 30
years?"

:D

- BE


Post a reply to this message

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