From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by margaux.inria.fr, Fri, 19 Nov 93 09:30:06 +0100 Received: from concorde.inria.fr by margaux.inria.fr, Fri, 19 Nov 93 07:35:09 +0100 Received: from infbssys.ips.cs.tu-bs.de by concorde.inria.fr; Fri, 19 Nov 1993 07:38:18 +0100 Received: from infbsst6.ips.cs.tu-bs.de by infbssys.ips.cs.tu-bs.de with SMTP id AA29387 (5.65c+/IDA-1.4.4 for ); Fri, 19 Nov 1993 07:38:14 +0100 From: lindig@ips.cs.tu-bs.de Date: Fri, 19 Nov 93 07:38:13 +0100 Message-Id: <4273.9311190638@infbsst6.ips.cs.tu-bs.de> To: caml-list@margaux Subject: Minor bug in camlyacc found Reply-To: lindig@ips.cs.tu-bs.de Sender: weis@margaux While building a Modula-2 parser using camlyacc I found a minor bug: When you define non terminals like "then" "type" or "do" the resulting code won't compile (syntax error). It seems that you shouldn't use reserved words form caml-light for non terminals. Capitalizing these non terminals helps. The chapter 'Overview of camlyacc' from the reference should give an explicit hint on that. parser.ml derived from parser.mly: (* 307, file parser.mly, line 781 *) ; (fun () -> repr((ast__Empty) : 'do)) ^^ causes syntax error Best regards, Christian ----------------------------------------------------------------------- Christian Lindig lindig@ips.cs.tu-bs.de Software Engineering Group -- TU Braunschweig -- D-38092 Braunschweig