POV-Ray : Newsgroups : povray.general : using flex and bison to parse povray scenes : Re: using flex and bison to parse povray scenes Server Time
14 Aug 2024 05:20:14 EDT (-0400)
  Re: using flex and bison to parse povray scenes  
From: Thomas Baier
Date: 13 Feb 1998 00:44:40
Message: <34E3DDC8.FE2E8F40@ibm.net>
Hi


> Questions:
> - Has anybody else made a flex+bison parser for POVRAY scenes, where I
> could get some ideas ?
>

Yes. Please have a look at POV2MDL, a povray 2.2 to Moray converter.Yes, i
have done a Parser with Lex&Yacc. Povray has really a lazzy syntax.
I think it is a impossible to write a Lex&Yacc parser with the quality of


The SDK is at http://ourworld.compuserve.com/homepages/thbaier.


> - Is it possible, to write the POVRAY language in BNF notation ?
> - Does anybody have some good ideas to store a POVRAY scene in memory?
>   Specification for this:
>   - not copied from the POVRAY source !
>   - easy manipulation of Objects (rearranging the tree)
>   - keeps ALL attributes of the Objekts
>
>                         Jens Ch. Restemeier

  Thomas


Post a reply to this message

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