|Postscript Parser firstname.lastname@example.org (1997-10-17)|
|Re: Postscript Parser email@example.com (Tom Lane) (1997-10-19)|
|Re: Postscript Parser firstname.lastname@example.org (1997-10-19)|
|Re: Postscript Parser email@example.com (1997-10-21)|
|Re: Postscript Parser Wolfgang.Glunz@mchp.siemens.de (Wolfgang Glunz) (1997-10-26)|
|From:||firstname.lastname@example.org (Peter Davis)|
|Date:||21 Oct 1997 21:23:32 -0400|
|Organization:||The World @ Software Tool & Die|
On 17 Oct 1997 22:49:37 -0400, David Withers <email@example.com> wrote:
> I'm trying to create a tool that recognises rectangles and text in
> PostScript diagrams and makes HTML image maps. Does anyone know of a
> PostScript parser that creates AST's or a grammar that I can use to
> make one?
The simplest approach would be to create a short PostScript prolog
which redefines certain operators to test for "rectangle-ness," and
then writes the appropriate HTML to a file. You would probably want
to redefine stroke, fill, rectstroke and rectfill.
This will not be completely bullet-proof, but it's simple, and will
probably cover all the cases you need to worry about.
[Sounds good to me, leverage that existing Postscript interpreter. -John]
Return to the
Search the comp.compilers archives again.