POV-Ray : Newsgroups : povray.newusers : Tokens Server Time
26 Nov 2024 07:45:29 EST (-0500)
  Tokens (Message 1 to 4 of 4)  
From: Raphael
Subject: Tokens
Date: 19 Aug 2004 20:38:13
Message: <Pine.LNX.4.56.0408192037110.15640@localhost.localdomain>
What is a token and why do I care how many there are?

	And if I don't care why am I being told?


Post a reply to this message

From: Alain
Subject: Re: Tokens
Date: 19 Aug 2004 21:47:44
Message: <41255840$1@news.povray.org>
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

From: Thorsten Froehlich
Subject: Re: Tokens
Date: 20 Aug 2004 01:17:35
Message: <4125896f@news.povray.org>
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

From: Warp
Subject: Re: Tokens
Date: 20 Aug 2004 04:08:47
Message: <4125b18f@news.povray.org>
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

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