[Gs-devel] Off topic? Use of DSC parser in GS
Russell Lang
gsview at ghostgum.com.au
Tue May 8 15:00:54 PDT 2001
> 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.
Russell Lang gsview at ghostgum.com.au
Ghostgum Software Pty Ltd http://www.ghostgum.com.au/
More information about the gs-devel
mailing list