screwtape
03-07-2001, 02:16 PM
I'm in a CS graphics class, which is basically an openGL class. Anyway, for all our homeworks so far we've had to use a paser library to read in datafiles that was written over 6 years ago. Its really weird, he source code of the lib is not writen by c but some BNF expressions. The c code is generated by yacc. This means that its not compatible with any other libraries that aren't in pure C. I've tried to incorporate other libraries, namely GLUI, that have been written in C++ but the compiler doesn't like it when I do that, it screws up the parser library if I try to compile it in C++. The parser also screws up some basic functions, for example I can't call the scanf function.
The complete parser library can be found at:
cse.unl.edu/home/classes/cse470/pub/lib/parser/*.*
Not only that but the parser doesn't support several things that are found in some of the datafiles, including multiple light sources, ambience, and some others.
It seems to me that it at least at one point was a pretty common parser scheme because we have about a hundred datafiles that have been written to suit it by authors from around the world.
Does anyone know anything about this parser scheme? Does anyone know if there is a better version of the same scheme? One that perhaps was written in actual C or C++ code and supports all features?
I also have certain problems with certain datafiles written for the scheme, they cause my program to crash or freeze up. I know its nothing wrong with the program itself because plenty of the datafiles DO work. This class is starting to get on my nerves, who ever wrote the parser file was a complete idiot and I don't feel like going through and rewriting it, so ANY help would be much appreciated. Also at the same site you can search around and look at the datafiles to see the format that they are in. Thanks...
The complete parser library can be found at:
cse.unl.edu/home/classes/cse470/pub/lib/parser/*.*
Not only that but the parser doesn't support several things that are found in some of the datafiles, including multiple light sources, ambience, and some others.
It seems to me that it at least at one point was a pretty common parser scheme because we have about a hundred datafiles that have been written to suit it by authors from around the world.
Does anyone know anything about this parser scheme? Does anyone know if there is a better version of the same scheme? One that perhaps was written in actual C or C++ code and supports all features?
I also have certain problems with certain datafiles written for the scheme, they cause my program to crash or freeze up. I know its nothing wrong with the program itself because plenty of the datafiles DO work. This class is starting to get on my nerves, who ever wrote the parser file was a complete idiot and I don't feel like going through and rewriting it, so ANY help would be much appreciated. Also at the same site you can search around and look at the datafiles to see the format that they are in. Thanks...