From: Carlos Date: 2005-01-27T10:23:26+09:00 Subject: Re: When little languages grow... [Hugh Sasse Staff Elec Eng , 2005-01-26 19.18 CET] > My present example is that I want to parse Constructive Solid > Geometry descriptions, at the moment limited to cones, spheres, > bricks with the co-ordinates specified, and I need to specify > material types as well. > > I'd also like to be able to declare new objects so they can be > placed. Silly example: Get two small spheres to cap the ends of > a cylinder and call the result a Sausage. Then place several > Sausages in the space at different points. > > Later I'd have to extend the language to be able to rotate them into > psoition. Lots of creeping featurism is likely, I suspect. I > didn't have material types to deal with before. How about using POV-ray's scene description language? Here somebody did a yacc parser for that language: http://www.io.com/~wwagner/pov.html (skip to header "The Parser"). Maybe you can adapt it to use with racc. (I don't know about the licence.) Good luck.