POV-Ray : Newsgroups : povray.general : Parser Scanner Test Case Challenge : Re: Parser Scanner Test Case Challenge Server Time
24 Apr 2024 21:55:06 EDT (-0400)
  Re: Parser Scanner Test Case Challenge  
From: Bald Eagle
Date: 14 May 2018 12:55:01
Message: <web.5af9be843f003c3bc437ac910@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> The scanner will
> also be responsible for earmarking each "word" with the line and column
> where it was found.

Well, this all sounds like a herculean task.

Perhaps you could kick-start this by posting an illustrative example, perhaps
with a past known issue that's been resolved.

A related aside:
----------------------------------------------------

Since writing all of that benefits from incorporating certain features early on,
I'm wondering if this would be the point to think about implementing a
nested-level-counter.

Quite often with loops or include files, a closing bracket or something gets
left out, and it's a huge nightmare to backtrack through it all.
Perhaps if the level of the instruction were returned along with the line number
and column, it would easier to see "where" in the code things went wrong.

// Level 0
#for (X, 0 10)
     // Level 1
          #if (Something = true)
               // Level 2
               #debug"True!"
          #end
#end


Post a reply to this message

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