POV-Ray : Newsgroups : povray.general : Syntax-Parsing Server Time
16 Nov 2024 11:17:20 EST (-0500)
  Syntax-Parsing (Message 1 to 3 of 3)  
From: Florian Brucker
Subject: Syntax-Parsing
Date: 30 Dec 2003 15:33:09
Message: <3ff1e105$1@news.povray.org>
I just noticed that the following code renders without errors, although 
the syntax contains IMHO an error (Notice the last comma in the 
parameter list):

<POV>
#macro MyMacro(Param1,Param2,Param3,)
   //do something
#end
</POV>

(This does not cause any problems for me, just wanted to make sure 
somebody who knows about the parser interna knows about it)

Florian


Post a reply to this message

From: Christopher James Huff
Subject: Re: Syntax-Parsing
Date: 30 Dec 2003 20:59:10
Message: <cjameshuff-633B0F.20590830122003@netplex.aussie.org>
In article <3ff1e105$1@news.povray.org>,
 Florian Brucker <tor### [at] torfboldcom> wrote:

> I just noticed that the following code renders without errors, although 
> the syntax contains IMHO an error (Notice the last comma in the 
> parameter list):
> 
> <POV>
> #macro MyMacro(Param1,Param2,Param3,)

POV-Ray is very forgiving about commas. It often lets you leave them out 
completely (which often causes surprises later on, so it is a bad idea 
to do so), and usually lets you leave a trailing comma in lists of 
items. (makes it easier to create that list with a loop...which doesn't 
apply here)

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

From: Florian Brucker
Subject: Re: Syntax-Parsing
Date: 31 Dec 2003 05:48:49
Message: <3ff2a991$1@news.povray.org>
> POV-Ray is very forgiving about commas. It often lets you leave them out 
> completely (which often causes surprises later on, so it is a bad idea 
> to do so), and usually lets you leave a trailing comma in lists of 
> items. (makes it easier to create that list with a loop...which doesn't 
> apply here)
Fine :)

Florian


Post a reply to this message

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