A simple parser for a subset of the POV-Ray scene description language.

This version of the parser also parses light definitions, pigments and finishes. The parser does not create any data structures for objects; the information about objects is assigned to local variables and printed. To create objects, add code to each object-parsing function. All code is written in C.

Makefile Makefile for UNIX (tested on SGI).
poveparse.dsp Project file for Visual Studio 6.0.
main.c
vecmath.h Several functions for operations on vectors and matrices; has to be extended to a more complete set.
vecmath.c
tokens.h Functions to conver input stream to tokens.
tokens.c
parse.h Main parsing functions.
parse.c
sample-nolight.pov A sample scene (same as before, but with colors).
cluster.pov Another sample scene (reflection and refraction).
parser.zip An archive containing all files.