[Gs-devel] Off topic? Use of DSC parser in GS

Tom Kacvinsky tjk at ams.org
Wed May 9 14:19:43 PDT 2001


Hi Russell,

What do I need to link against?  I am going to try tom compile dscutil.cpp in
standalong mode on Solaris 2.7...  I have gs 7.00 compiled and installed
already.

Thanks,

Tom

On Wed, 9 May 2001, Russell Lang wrote:

> > I am looking for sample code that uses the DSC parser built into GS.
> >
> > In particular, I am after a tool for verifying that a PS document conforms to
> > the DSC specifiation, and all Begin/End pairs match up as they should...
> >
> > Matching of Begin/End comments is a very imnportant prerequisite for a project I
> > am currently working on...
>
> The DSC parser doesn't verify everything, but it does check for
> matching Begin/End pairs and gives a text warning if they don't
> match.
>
> There are two C modules to the DSC parser.  Ghostscript uses only the
> first, dscparse.c/cpp.  The second is only in GSview and provides
> sample code for how to use it.  This is dscutil.cpp.
>




More information about the gs-devel mailing list