POV-Ray : Newsgroups : povray.unofficial.patches : scenefile parsing : scenefile parsing Server Time
8 Jul 2024 16:49:42 EDT (-0400)
  scenefile parsing  
From: Grey Knight
Date: 22 Feb 2002 09:44:06
Message: <3C76592A.74D01D3C@namtar.qub.ac.uk>
[please correct any false assumptions in next paragraph]
I assume; when POVRay reads in a scenefile, it goes through the text
(skipping whitespace) until it finds a keyword, which it then converts
into something that the rest of the program understands. This might
involve looking ahead through the file to find a parameter (eg. when it
hits "sphere", it goes looking for the center and radius parameters) or
something.
My question; how far ahead does this look-ahead work? I have an idea for
a version of POVRay which will pass the scenefile to the parser in small
chunks (I'll explain why later), and I'd like to know how small I can
make those chunks without running into problems with look-ahead.
Please also inform me of any other problems this system might run into.
Thanks.

-- 
signature{
  "Grey Knight" contact{ email "gre### [at] yahoocom" }
  site_of_week{ url "http://digilander.iol.it/jrgpov" }
}


Post a reply to this message

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