POV-Ray : Newsgroups : povray.general : New SDL: support for lexical scanner generators : Re: New SDL: support for lexical scanner generators Server Time
31 Jul 2024 12:23:53 EDT (-0400)
  Re: New SDL: support for lexical scanner generators  
From: Wolf
Date: 8 Oct 2007 14:45:01
Message: <web.470a7a0984df9986edd244720@news.povray.org>
Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:

> >> Abusing macros and
> >> loops you could make the syntax change from valid to invalid depending
> >> on what frame number you're rendering.
> >
> > Why would there be such a thing like syntactically invalid frame code? If
> > it's invalid POV-ray can not render it.
> >
>
> Exactly. And you want PovClipse to notice that before POV-Ray attempts
> (and fails) to render it, right?

Yes indeed, that's the intention.
Part of this this feature is already implemented: PovClipse nags about any
word which is not a known POV or MegaPOV keyword, the name of a declared
variable or macro.
The next step would be the **syntactical** errors, but for this I need a
grammar definition to be used with ANTLR or similar tool, and this is what
this thread is all about.

- Wolf


Post a reply to this message

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