POV-Ray : Newsgroups : povray.general : SDL grammar : Re: SDL grammar Server Time
2 Aug 2024 00:19:24 EDT (-0400)
  Re: SDL grammar  
From: Elias Pschernig
Date: 5 Mar 2005 07:15:00
Message: <web.4229a2898c7fd44c969560f60@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> Elias Pschernig <elias at users sf net> wrote:
> > I was just wondering, does anyone know about the origin of the grammar used
> > for describing the SDL throughout the pov docs?
>
>   It's a kind of BNF derivative. The BNF notation is quite common in
> many places as it's a formal way to define the syntax of things.
>
> > I started playing around with some python code to parse simple .pov scripts
> > based on SDL grammar snippets from the docs - so now I was wondering if
> > there's somewhere the complete grammar, and maybe even a utility to
> > generate a parser based on it? (Else I have to copy&paste it all out of the
> > docs..)
>
>   I think yacc and lex are often used to create language parsers with
> some BNF-style syntax.
>

Thanks. I was actually hoping to find the program which was used to test the
BNF used in the docs, since the pov source itself apparently doesn't use
it. Or maybe just the complete grammar in one file, not scattered into the
docs. But I guess, I must just to some copy&pasting :)


Post a reply to this message

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