POV-Ray : Newsgroups : povray.programming : Parsing/Directives Server Time
22 Dec 2024 01:00:12 EST (-0500)
  Parsing/Directives (Message 1 to 4 of 4)  
From: Paul Senzee
Subject: Parsing/Directives
Date: 17 Jan 2006 21:22:29
Message: <43cda665$1@news.povray.org>
Hi All,

I'm rewriting the parser for my pov2mesh application
(http://www.geocities.com/psenzee/pov2mesh/) and I've got a question about
how directives are handled in pov.  Are the directives in POV a logically
separate phase like a C preprocessor?

In the pov bnf, things like

#if ( BOOL )  TOKENS ...

lead me to believe that it's a separate phase, but then there are other
restrictions on when and where certain directives can be used that are not
consistent with a separate 'preprocessor'.  Any info about this would be
great!

Thanks!

Paul Senzee


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Parsing/Directives
Date: 17 Jan 2006 21:44:20
Message: <43cdab84$1@news.povray.org>
Paul Senzee wrote:
> I'm rewriting the parser for my pov2mesh application
> (http://www.geocities.com/psenzee/pov2mesh/) and I've got a question about
> how directives are handled in pov.  Are the directives in POV a logically
> separate phase like a C preprocessor?

Sadly, no. They sit slightly "below" the parser, closer to the tokenizing 
code, yet they do interact with the parser in some complex ways that won't 
be clear from the source code immediately.

	Thorsten Froehlich, POV-Team


Post a reply to this message

From: Bonsai
Subject: Re: Parsing/Directives
Date: 18 Jan 2006 02:57:26
Message: <43cdf4e6$1@news.povray.org>
Paul Senzee wrote:
> In the pov bnf

Is there a document available that shows the definition of the POV-SDL 
in BNF? I once updated the syntax highlightning plug-in for jEdit and at 
some points I was in trouble, because I didn't know how the POV-SDL is 
structured.

Thanks,

Bonsai

-- 
<--------------------------->
    ___ __ __  _ ___ ___  _
   | _ )  \  \( )  _) _ )( )
   | _ \() |\ \ |\ \/ _ \| |
   |___/__/_)\__)___)/ \_)_)

        www.b0n541.net
<--------------------------->


Post a reply to this message

From: Paul Senzee
Subject: Re: Parsing/Directives
Date: 18 Jan 2006 21:15:39
Message: <43cef64b$1@news.povray.org>
Hi Bonsai,

You can find the language spec at
http://www.povray.org/documentation/view/3.6.1/224/.

Paul Senzee

"Bonsai" <bon### [at] b0n541net> wrote in message
news:43cdf4e6$1@news.povray.org...
> Paul Senzee wrote:
> > In the pov bnf
>
> Is there a document available that shows the definition of the POV-SDL
> in BNF? I once updated the syntax highlightning plug-in for jEdit and at
> some points I was in trouble, because I didn't know how the POV-SDL is
> structured.
>
> Thanks,
>
> Bonsai
>
> -- 
> <--------------------------->
>     ___ __ __  _ ___ ___  _
>    | _ )  \  \( )  _) _ )( )
>    | _ \() |\ \ |\ \/ _ \| |
>    |___/__/_)\__)___)/ \_)_)
>
>         www.b0n541.net
> <--------------------------->


Post a reply to this message

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