POV-Ray : Newsgroups : povray.newusers : What is a token? Server Time
2 Nov 2024 05:21:24 EDT (-0400)
  What is a token? (Message 1 to 4 of 4)  
From: Raphael
Subject: What is a token?
Date: 9 Aug 2004 09:10:01
Message: <Pine.LNX.4.56.0408090909200.24104@localhost.localdomain>
And why do I care?

And if I don't care why is it telling me how many?


Post a reply to this message

From: Florian Brucker
Subject: Re: What is a token?
Date: 9 Aug 2004 14:28:52
Message: <4117c264$1@news.povray.org>
If I'm not mistaken a token is basically one piece of POV's Scene 
Description Language's syntax. This could be a keyword, a number, an 
operator(like "+", "-") or the name of an identifier, etc.

> And why do I care?
Dunno. Perhaps because tokens are cute and everybody wants some?

If you're talking about the statistics in the output during the render, 
it is there to show you how fast the parser is working - I think it's 
far better than the old "...........".

> And if I don't care why is it telling me how many?
How about switching some of those streams of? There's a section in the 
manual about it, 3.2.1.7


HTH,
Florian


Post a reply to this message

From: Jim Charter
Subject: Re: What is a token?
Date: 9 Aug 2004 15:41:09
Message: <4117d355@news.povray.org>
Raphael wrote:

> And why do I care?
> 
> And if I don't care why is it telling me how many?
Because developers look at those outputs too?


Post a reply to this message

From: Christoph Hormann
Subject: Re: What is a token?
Date: 9 Aug 2004 16:00:01
Message: <cf8l1f$ouv$1@chho.imagico.de>
Raphael wrote:
> And why do I care?
> 
> And if I don't care why is it telling me how many?

Assuming you are talking about the POV-Ray message output - they are a 
good measure for the complexity of a scene.  A scene file of 5 lines can 
take POV-Ray to parse a million tokens which will probably take some 
time.  If on the other hand your parsing takes time without the number 
of tokens increasing you are probably either reading in a large image 
map etc. or are running out of memory.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 06 Jul. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

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