dcsimg
Postscript grammar available !
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Peter_Greiner
Posted On:   Sunday, February 10, 2002 11:42 AM

Is there an antlr-grammar for Postscript or EPS available ?

Peter

Re: Postscript grammar available !

Posted By:   Terence_Parr  
Posted On:   Monday, February 11, 2002 05:40 PM

Not that I'm aware of. PS is a very simple stack machine so it should be pretty easy. Lexically it's just words and numbers plus some simple punctuation I think.



What do you want to do with it? I remember building one for Adobe Illustrator (subset of EPS I think) that was a bit of a pain since I wanted to execute the commands. I remember needed a bunch of lookahead to see past all of the arguments (they are first then the function name).



Heh, i found an old PCCTS grammar for illustrator postscript. You want it? mail your email to parrt at jguru dot com.
About | Sitemap | Contact