Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Stephan Zdancewic <zdance@cs.cornell.edu>
To: caml-list@pauillac.inria.fr
Subject: Caml Parsing
Date: Tue, 17 Sep 1996 14:57:12 -0400	[thread overview]
Message-ID: <199609171857.OAA04386@earth.cs.cornell.edu> (raw)


Hello!
	I'm trying to use the SML version of yacc to write a parser
for Objective Caml, but I've run into problems because of some
differences in SML-yacc and Caml-yacc.  More precisely, Caml-yacc
allows you to specify precedence and associativity for non-terminals
in the grammar, while SML-yacc will let you do this only for
terminals.  Since the Caml-yacc grammar for OCaml makes extensive use
of this feature, I need a way of getting the same behavior in
SML-yacc.
	If anyone knows of a way around this, I'd be very greatful
for the information. Alternatively, does there exist a specification
of the OCaml grammar that doesn't rely on these precedence 
levels/associativities?  Or, better yet, has anyone already written
an OCaml parser for SML?

Thanks,
Steve Zdancewic
zdance@cs.cornell.edu





             reply	other threads:[~1996-09-18  6:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-17 18:57 Stephan Zdancewic [this message]
1996-09-18 14:42 ` Xavier Leroy

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=199609171857.OAA04386@earth.cs.cornell.edu \
    --to=zdance@cs.cornell.edu \
    --cc=caml-list@pauillac.inria.fr \
    /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