Article View: comp.lang.modula2
Article #4867Re: LL(1) grammar for m2
From: Frans van Otten
Date: Wed, 07 Jun 1989 09:11
Date: Wed, 07 Jun 1989 09:11
20 lines
1222 bytes
1222 bytes
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
Technical Details
Message-ID:
<963@maestro.htsa.aha.nl>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!hp4nl!maestro!fransvoReferences:
<INFO-M2%89060620250985@UCF1VM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <INFO-M2%89060620250985@UCF1VM> Reply-To: fransvo@htsa.UUCP (Frans van Otten) Organization: AHA-TMF (Technical Institute), Amsterdam The Netherlands Lines: 20