Newsgroups: comp.lang.dylan
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!portc02.blue.aol.com!howland.erols.net!netcom.com!netcom9.netcom.com!haahr
From: haahr@netcom.com (Paul Haahr)
Subject: a yacc grammar for Dylan
Message-ID: <HAAHR.96Nov24154718@netcom9.netcom.com>
Sender: haahr@netcom9.netcom.com
Organization: NETCOM On-line services
Date: Sun, 24 Nov 1996 23:47:17 GMT
Lines: 14

The BNF phrase grammar that appears in the DRM is somewhat simplified
from what's needed for an LALR(1) parser generator.  A while ago, I did
a YACC implementation that removes the ambiguities and conflicts in the
presentation version, and attempts to address a couple of issues that
DRM swept under the carpet.  (Notably, words need to be in multiple
categories simultaneously, to support a BEGIN-WORD, such as ``method,''
that is also a DEFINE-BODY-WORD, for example.)

You can find my implementation at:

  http://www.webcom.com/haahr/dylan/grammars.html

Remember, parsing Dylan requires more work than just feeding tokens to a
yacc grammar -- macro processing is rather hard.
