POV-Ray : Newsgroups : povray.binaries.programming : My idea: Developers need tips! Help me, please! : Re: My idea: Developers need tips! Help me, please! Server Time
7 May 2024 03:37:31 EDT (-0400)
  Re: My idea: Developers need tips! Help me, please!  
From: clipka
Date: 30 Oct 2016 04:26:34
Message: <5815aeba@news.povray.org>
Am 30.10.2016 um 07:36 schrieb LanuHum:

> Now we need to understand here:
> povray-master/source/parser/parser.cpp:
> 6704:       CASE (OBJECT_ID_TOKEN)
>             Object = Copy_Object(reinterpret_cast<ObjectPtr>(Token.Data));
>             EXIT
>             END_CASE
> 
> In .pov:
> object{Human}
> 
> But Human no declare:
> File '/tmp/Scene.pov' line 17: Parse Error: Expected 'object', undeclared
>  identifier 'Human' found instead
> Fatal error in parser: Cannot parse input.
> Render failed
> 
> It needs to be fixed:
> if (undeclared identifier){go to BlenderScene}

Note that in the POV-Ray parser, the job of identifying the type of a
variable is integrated into the tokenizer: The token type is only set to
OBJECT_ID_TOKEN if the variable is defined as a geometric object
(sphere, box, whatever).

For undeclared identifiers, the tokenizer sets the token type to
IDENTIFIER_TOKEN.


Post a reply to this message

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