caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: lindig@ips.cs.tu-bs.de
To: caml-list@margaux
Subject: Minor bug in camlyacc found
Date: Fri, 19 Nov 93 07:38:13 +0100	[thread overview]
Message-ID: <4273.9311190638@infbsst6.ips.cs.tu-bs.de> (raw)


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





                 reply	other threads:[~1993-11-19  8:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4273.9311190638@infbsst6.ips.cs.tu-bs.de \
    --to=lindig@ips.cs.tu-bs.de \
    --cc=caml-list@margaux \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).