caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
To: Nicolas Bros <nicolas.bros@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] OCalDE
Date: Wed, 25 Jul 2007 09:41:22 +0200	[thread overview]
Message-ID: <46A6FEA2.5090708@univ-savoie.fr> (raw)
In-Reply-To: <4fbf351c0707250027t33c80ef1gc57f686ef9cfb376@mail.gmail.com>

Nicolas Bros a écrit :
>> How can I tell eclipse parser about my own camlp4 extension ?
>
> For now, you can't. OcaIDE uses a custom parser written in Java,
> copied from the rules of the original Ocaml parser. So, it only parses
> standard syntax.
> To parse a modified syntax, the file would first have to be processed
> by camlp4.
> But then, how would OcaIDE get the positions of the elements in the
> original unprocessed file?
>
>
You could take the same approach than proof general for eclipse, writte 
a parser with anything (this includes camlp4)
whose output is a copy of the original file with xml annotation. Such a 
parser should allow camlp4 extension ...

The main problem, is that appart from the xml annotation the text should 
not be changed, so a camlp4 pretty-printer will not workd. However, the 
parser could simply produce the position where to add xml annotation 
that are inserter in a second phase into the original
input ...

So what needs to be written is a camlp4 parser that produce pairs with 
positions and xml annotation ... and that also perform a little error 
recovery ...
>> No progress about the darcs incompatibility related to "linked URLs" 
>> used by OCaIDE
>> and not supported by darcs eclipse.
>
> I think this is more of a problem with darcs than with OcaIDE.
>
Yes, probably, but what is a "linked URL" and what is their use in 
OCaIDE ? If it is the link to the ocaml library, then
it is strange that darcs think linked URL matters ?


  reply	other threads:[~2007-07-25  7:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-23 16:21 OCalDE Christophe Raffalli
2007-07-25  7:27 ` [Caml-list] OCalDE Nicolas Bros
2007-07-25  7:41   ` Christophe Raffalli [this message]
2007-07-25  9:24   ` Alain Frisch
2007-07-25 15:32     ` Nicolas Bros
2007-07-25  9:33   ` Jon Harrop
2007-07-31 11:22 ` Nicolas Bros
2007-07-25 12:30 Re : " Matthieu Wipliez
2007-07-26 16:47 ` Jon Harrop
2007-07-27  7:18   ` Nicolas Bros

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=46A6FEA2.5090708@univ-savoie.fr \
    --to=christophe.raffalli@univ-savoie.fr \
    --cc=caml-list@yquem.inria.fr \
    --cc=nicolas.bros@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).