caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Minor bug in camlyacc found
@ 1993-11-19  6:38 lindig
  0 siblings, 0 replies; only message in thread
From: lindig @ 1993-11-19  6:38 UTC (permalink / raw)
  To: caml-list


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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-11-19  8:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1993-11-19  6:38 Minor bug in camlyacc found lindig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).