Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rochester.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!rochester!ken From: ken@rochester.UUCP (and Vicki Herrieschopper) Newsgroups: net.lang.mod2 Subject: Re: modula -2 syntax Message-ID: <12678@rochester.UUCP> Date: Sun, 27-Oct-85 07:41:59 EST Article-I.D.: rocheste.12678 Posted: Sun Oct 27 07:41:59 1985 Date-Received: Tue, 29-Oct-85 01:20:02 EST References: <1975@aecom.UUCP> Reply-To: ken@rochester.UUCP (and Vicki Herrieschopper) Distribution: net Organization: Home for the terminally enabled Lines: 17 >I am looking for a BNF or YACC representation of the syntax >of Modula - 2. If you have one already written out, please >send it. time is of the essence. thanx > > ronny gross Appendix 1 of "Programming in Modula-2, 3rd ed." has an Extended BNF grammar. If that is not enough, Appendix 4 has railroad diagrams. You can rewrite EBNF productions to be left-recursive or right-recursive depending on whether you want a LR grammar or LL grammar. Ken -- UUCP: ..!{allegra,decvax,seismo}!rochester!ken ARPA: ken@rochester.arpa USnail: Dept. of Comp. Sci., U. of Rochester, NY 14627. Voice: Ken!