Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!hp4nl!maestro!fransvo From: fransvo@maestro.htsa.aha.nl (Frans van Otten) Newsgroups: comp.lang.modula2 Subject: Re: LL(1) grammar for m2 Message-ID: <963@maestro.htsa.aha.nl> Date: 7 Jun 89 09:11:04 GMT References: Reply-To: fransvo@htsa.UUCP (Frans van Otten) Organization: AHA-TMF (Technical Institute), Amsterdam The Netherlands Lines: 20 Scott Redmon writes: >Can anyone tell me where I could find a LL(1) grammar of modula-2?? The syntax of Modula-2 is not easy to convert to LL(1). For example, the designator/qualident problem: designator ::= qualident { '.' identifier | '[' ExpList ']' | '^' }. qualident ::= identifier { '.' identifier }. See the problem ? You will have to do some semantical analysis. Within these restrictions, I have a LL(1) grammar for Modula-2 available. Just mail me. -- Frans van Otten | fransvo@maestro.htsa.aha.nl or Algemene Hogeschool Amsterdam | fransvo@htsa.uucp or Technische en Maritieme Faculteit | [[...!]backbone!]htsa!fransvo