lex/yacc description of PostScript language 
Author Message
 lex/yacc description of PostScript language

FreePS, my level 1 interpreter, contains a flex specification for
level one postscript.  You can pick up the package at my home
page at http://www.*-*-*.com/ ~frank/free_ps.tar.Z



Sun, 07 Nov 1999 03:00:00 GMT  
 lex/yacc description of PostScript language

Can anyone point me to a lex/yacc description (or BNF grammar) for the
PostScript language?

I couldn't find any leads in the FAQ.  I thought that perhaps the
ghostscript distribution would contain lex and/or yacc descriptions, but
I was wrong...

Thanks in advance,
Jeff Gresham



Sun, 07 Nov 1999 03:00:00 GMT  
 lex/yacc description of PostScript language

: Can anyone point me to a lex/yacc description (or BNF grammar) for the
: PostScript language?
:
: I couldn't find any leads in the FAQ.  I thought that perhaps the
: ghostscript distribution would contain lex and/or yacc descriptions, but
: I was wrong...

Try the comp.compilers faq. There is a section on lex/yacc grammars.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Spehro Pefhany                                    "The Journey is the reward"

Fax:(905) 332-4270                      (small micro system devt hw/sw + mfg)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



Sun, 07 Nov 1999 03:00:00 GMT  
 lex/yacc description of PostScript language

Quote:

>Can anyone point me to a lex/yacc description (or BNF grammar) for the
>PostScript language?

Have you looked at the PostScript language? It's actually something
like this:

[ <operator> | <operand> |  <special character> | <data> ] *

It's a long time since I looked at formal languages, but I don't think
they lend themselves to this job.
----------------------------------------

Visit http://www.*-*-*.com/ ,
PSAlter, psalters, tea, and small {*filter*} animals. And stuff.  



Mon, 08 Nov 1999 03:00:00 GMT  
 lex/yacc description of PostScript language

I concurr that PS is not suitable for use with yacc.  Note that
YACC is a Compiler Compiler, not and interpreter designer.  My
interpreter does use lex as a front end.  

This general layout was suggested by one of the developers of
the Harlequin RIP, and it works well.

After that, the state is the state, the stack is the stack,  and
operator lookup is
done as a array of binary trees.  Some leaves are function
pointers ( built-in operators ) and some leaves are ordered
sets of function pointers (procedures) and the rest is just plain
tedious.



Mon, 08 Nov 1999 03:00:00 GMT  
 lex/yacc description of PostScript language


says...

Quote:

>Can anyone point me to a lex/yacc description (or BNF grammar) for the
>PostScript language?

It's not that kind of a language.  Anything that's not a special character or a
number is a name:-).  See the PostScript Language Reference Manual for details
of what the special characters are and do.

============================================================================
Ian Kemmish                 18 Durham Close, Biggleswade, Beds SG18 8HZ

Info on Jaws and 5D's other products on http://www.five-d.com/5d
============================================================================
`Save string while you're young. Then when you're older, you'll have a ball.'



Mon, 08 Nov 1999 03:00:00 GMT  
 lex/yacc description of PostScript language


: : Can anyone point me to a lex/yacc description (or BNF grammar) for the
: : PostScript language?

: Try the comp.compilers faq. There is a section on lex/yacc grammars.

It isn't there. A lot of other languages but not PS. AFAIK, it is
available as part of PolyYacc, but that is (if memory serves) $500-$1500
depending on the platform. Good luck. You could try the (moderated) n.g.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Spehro "sorry to be quoting himself" Pefhany "The Journey is the reward"

Fax:(905) 332-4270                      (small micro system devt hw/sw + mfg)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



Mon, 08 Nov 1999 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Searching postscript syntax and grammar in lex and yacc

2. YACC & lex grammar for postscript

3. Syntax checker for VBS and VBS grammar for YACC/LEX

4. PostScript: The Page Description Language for Application Developers

5. A Plasmid Description Language for PostScript

6. PostScript Language Description

7. lex & yacc for PostScript?

8. Plasmid Description Language short summary

9. Plasmid Description Language availability

10. Plasmid Description Language update

11. Plasmid Description Language II. Short Summary.

12. A language description?

 

 
Powered by phpBB® Forum Software