caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Zheng Li <zheng_li@users.sourceforge.net>
To: Conglun Yao <yaoconglun@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: How to achieve this camlp4 syntax extension
Date: Thu, 02 Apr 2009 15:00:11 +0200	[thread overview]
Message-ID: <49D4B6DB.2020407@users.sourceforge.net> (raw)
In-Reply-To: <f7b50d2a0904020442rb51fe54p496e6f2f2b665c3e@mail.gmail.com>

On 4/2/2009 1:42 PM, Conglun Yao wrote:
>
> Different kinds of error happened, when trying to use it.
>
> Even the ordinary expression:  List.length [1; 2;3 ],  failed.  'List'
> is parsed as module_longident, try to match the rule I defined.
>
> Thanks for any help.
>
> Conglun

You may have a look at the source code of my pa_scope [1]. It deals with 
these issues and support both open scope (via @) and closed scope (via 
.{}, .[], .()). The code is just ~50 lines.

HTH.

[1] http://www.pps.jussieu.fr/~li/software/index.html#pa_scope

--
Zheng







  parent reply	other threads:[~2009-04-02 12:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-02 11:42 Conglun Yao
2009-04-02 12:33 ` [Caml-list] " Jérémie Dimino
2009-04-02 12:40 ` David Teller
2009-04-02 12:48   ` Conglun Yao
2009-04-02 13:00 ` Zheng Li [this message]
2009-04-02 20:23   ` Conglun Yao
2009-04-14  0:24     ` [Caml-list] " Christophe TROESTLER

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=49D4B6DB.2020407@users.sourceforge.net \
    --to=zheng_li@users.sourceforge.net \
    --cc=caml-list@yquem.inria.fr \
    --cc=yaoconglun@gmail.com \
    /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).