POV-Ray : Newsgroups : povray.general : Any way to avoid repeated parsing? : Re: Any way to avoid repeated parsing? Server Time
11 Aug 2024 09:27:01 EDT (-0400)
  Re: Any way to avoid repeated parsing?  
From: Ron Parker
Date: 22 Sep 1999 17:46:22
Message: <37e94e2e@news.povray.org>
On Wed, 22 Sep 1999 17:27:23 -0400, Charles wrote:
>Nieminen Juha wrote:
>>   You still have to parse the entire code to see where is the matching
>> semicolon.
>>   There's no way to avoid parsing other than copying the whole source code
>> to memory without the static parts of it and then parse this copy.
>
>How about considering #static as an alternative to #include?
>There would be two acceptable forms the parser would expect...
>
>#static /filename/
>
>or
>
>#static (/filename/,/start/,/end/)

Or, using the syntax I proposed,

#static (start, end)
#include "filename"
#end


Post a reply to this message

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