[net.lang.mod2] yacc description of M2

kpk@gitpyr.UUCP (04/17/86)

There exists a published grammar for Modula-2 which is
suitable for input to yacc.  If someone has this grammar
online, I sure would appreciate a copy.  Also, any
pointers to where it is/was published would be greatly
appreciated.

Thanks

Barry_Cornelius@DURHAM.MAILNET (05/09/86)

On 17Apr86 kpk of Georgia Inst. of Technology sent this to info-modula-2:
>  There exists a published grammar for Modula-2 which is
>  suitable for input to yacc.  If someone has this grammar
>  online, I sure would appreciate a copy.  Also, any
>  pointers to where it is/was published would be greatly
>  appreciated.
I believe the article you're looking for is:
   "Lexing and Parsing Modula-2"
   David Spector
   ACM SIGPLAN Notices Volume 18 Number 10 (Oct. 1983), pp25-32
Sometime ago I had the production rules typed into a file but have not
checked them for errors yet.   They need some massaging to get them into a
useful form for yacc.   I'm attempting to send them to you but may fail
through uncertainty of electronic-mail address.   Can you mail me with a dummy
message so that I can reply.