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 01:13:03 EDT (-0400)
  Re: My idea: Developers need tips! Help me, please!  
From: LanuHum
Date: 30 Oct 2016 04:45:00
Message: <web.5815b226397eea9f7a3e03fe0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> 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.

Thanks! I am trying to understand.


Post a reply to this message

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