caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Aaron Bohannon <bohannon@cis.upenn.edu>
To: caml-list@yquem.inria.fr
Subject: camlp5/revised syntax questions
Date: Wed, 7 Oct 2009 12:20:08 -0400	[thread overview]
Message-ID: <c413fcb70910070920k724caad2t395acc723882749f@mail.gmail.com> (raw)

>From reading the camlp5 documentation, I've managed to write a syntax
extension that adds a new expression starting with a distinct keyword,
and it seems to work fine.  However, if I want to experiment with
infix notations, things get a little trickier.  I need to specify it's
precedence and associativity, of course.

So, there is a list of syntactic structures on this page:
http://pauillac.inria.fr/~ddr/camlp5/doc/htmlc/ast_transi.html

1) Where can I find the "level names" for each of these syntactic
constructs, for use with BEFORE, LIKE, etc?  Is that what the
"Comment" column is for?

2) I am confused by the fact that this is a list is for the revised
syntax.  I think most people (including me) want to modify the
original syntax.  e.g., imagine that I want to modify the record
update operator "<-" in the original syntax---I need to refer to it
somehow, but it doesn't even appear in the list.

 - Aaron


             reply	other threads:[~2009-10-07 16:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-07 16:20 Aaron Bohannon [this message]
2009-10-07 20:16 ` [Caml-list] " blue storm
2009-10-08 14:39   ` Aaron Bohannon
2009-10-10 12:31     ` blue storm
2009-10-14  2:04       ` Aaron Bohannon

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=c413fcb70910070920k724caad2t395acc723882749f@mail.gmail.com \
    --to=bohannon@cis.upenn.edu \
    --cc=caml-list@yquem.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;
as well as URLs for NNTP newsgroup(s).