POV-Ray : Newsgroups : povray.unofficial.patches : scenefile parsing : Re: scenefile parsing Server Time
8 Jul 2024 16:55:23 EDT (-0400)
  Re: scenefile parsing  
From: Ron Parker
Date: 22 Feb 2002 16:33:21
Message: <slrna7de94.vq0.ron.parker@fwi.com>
On Fri, 22 Feb 2002 14:43:54 +0000, Grey Knight wrote:
> 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.

If you explain why now, we might be able to help you avoid povlegal pitfalls.

The parser does not work as you think it does, but the general answer to your
question is probably "a token's worth."  However, the parser expects to be
able to go back and reread data it's already seen, and it expects to be able
to do so by opening a file and doing a seek.

-- 
#macro R(P)z+_(P)_(P)_(P+1)_(P+1)+z#end#macro Q(C,T)bicubic_patch{type 1u_steps
6v_steps 6R(1)R(3)R(5)R(7)pigment{rgb z}}#end#macro _(Y)#local X=asc(substr(C,Y
,1))-65;<T+mod(X,4)div(X,4)9>-2#end#macro O(T)Q("ABEFUQWS",T)Q("WSXTLOJN",T)#
end O(0)O(3)Q("JNKLCGCD",0)light_source{x 1}// ron### [at] povrayorg


Post a reply to this message

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