POV-Ray : Newsgroups : povray.programming : Custom povray scene file reader (parse.cpp + tokenize.cpp) : Re: Custom povray scene file reader (parse.cpp + tokenize.cpp) Server Time
17 May 2024 04:41:43 EDT (-0400)
  Re: Custom povray scene file reader (parse.cpp + tokenize.cpp)  
From: Thorsten Froehlich
Date: 4 Mar 2006 17:39:39
Message: <440a172b$1@news.povray.org>
human_2.0 wrote:
> I want to make a povray scene file reader to convert the files to a
> different format.  I thought I could do it from scratch, but I'm finding
> little catches all over.  I've not studied lexers much.  I was just
> thinking that writing a custom binary with povray's own parse.cpp and
> tokenize.cpp would probably be the easiest solution, and have it print out
> a list of obects or something like that.
> 
> Would this be easier for someone unfamiliar with the povray source code than
> writing my own parser?  I code in Perl mostly but can read c++.

Please read the POV-Ray license. You are prohibited to use POV-Ray source 
code outside POV-Ray. As such, you will have to write your own parser, 
however, I cannot see why you would want to write a parser that masters all 
features of POV-Ray. i.e. just for meshes a parser would be really easy to 
write though.

	Thorsten, POV-Team


Post a reply to this message

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