POV-Ray : Newsgroups : povray.beta-test : semicolon not expected : Re: semicolon not expected Server Time
30 Jul 2024 04:16:04 EDT (-0400)
  Re: semicolon not expected  
From: Thorsten Froehlich
Date: 7 Jan 2002 07:18:46
Message: <3c399226@news.povray.org>

Skiba <abx### [at] babilonorg>  wrote:

> below script causes parsing error
> "Expected 'object or directive', ; found instead"
>
> #macro Test1()          1      #end
> #macro Test2() #if(yes) 2 #end #end
>
> #local F=Test1()   // works
> #local F=Test1();  // works
> #local F=Test2()   // works
> #local F=Test2();  // not
>
> Any confirmation ?

Semicolons are listed as required after every #local, #declare and #version
with a float, vector or color value.  If you don't include the required
semicolon the problem is in your scene and the parser reports it as soon as
it is possible to report this.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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