|
|
Raphael nous apporta ses lumieres ainsi en ce 19/08/2004 20:38... :
> What is a token and why do I care how many there are?
>
> And if I don't care why am I being told?
>
>
Tokens are every bit of code in a scene: every keyword are tokens, any
variable and operator is a token, a numerical value is also a token...
Alain
Post a reply to this message
|
|
|
|
In article <Pin### [at] localhostlocaldomain> ,
Raphael <roo### [at] localhostlocaldomain> wrote:
> What is a token and why do I care how many there are?
>
> And if I don't care why am I being told?
And why do you ask the exact same question again after three weeks?
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
|
|
|
|
Raphael <roo### [at] localhostlocaldomain> wrote:
> What is a token and why do I care how many there are?
> And if I don't care why am I being told?
Since the POV-Ray SDL is a turing-strong language, it's impossible
to predict in a general case how long it will take to parse and thus
show a percentage of how much has been parsed already (this is basic
computational theory).
On the other hand, if POV-Ray shows no sign that it really is doing
something, it may look like it has hanged because nothing seems to be
happening.
As a compromise POV-Ray shows the number of tokens it has parsed
so that the user gets visual feedback that it really is doing something
and how much it has done already.
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|