From: Nicolas Pouillard <nicolas.pouillard@gmail.com>
To: Alain Frisch <alain@frisch.fr>
Cc: Jon Harrop <jon@ffconsultancy.com>, caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Favorite OCaml editor?
Date: Tue, 05 Jan 2010 11:44:23 +0100 [thread overview]
Message-ID: <1262688075-sup-7836@peray> (raw)
In-Reply-To: <4B4313FB.6070808@frisch.fr>
Excerpts from Alain Frisch's message of Tue Jan 05 11:27:07 +0100 2010:
> On 05/01/2010 09:13, Jon Harrop wrote:
> > I think the best way to write a decent editor for OCaml would be to write one
> > using LablGTK for the GUI and camlp4 to parse OCaml code.
>
> It is indeed very tempting to reuse an existing OCaml parser in order to
> support syntax-related features (indentation, coloring, and whatnot);
> especially if you can then support syntax extension properly.
>
> The problem is that the editor is supposed to work even with partial or
> syntactically invalid code, which is not the case for the OCaml parsers
> (built-in or Camlp4-based). It would be great to have a parser for OCaml
> syntax, with robust error recovery. Has anyone worked on such a project?
Reusing the work done in the Yi [1][2] editor for the Haskell syntax should
be pretty straightforward. Very long and painful however due to the complexity
of the grammar of a real language.
[1]: http://www.haskell.org/haskellwiki/Yi
[2]: http://www.cse.chalmers.se/~bernardy/FunctionalIncrementalParsing.pdf
--
Nicolas Pouillard
http://nicolaspouillard.fr
next prev parent reply other threads:[~2010-01-05 10:44 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-05 6:03 Grant Rettke
2010-01-05 6:08 ` [Caml-list] " Mihamina Rakotomandimby
2010-01-05 6:22 ` Mike Lin
2010-01-05 6:36 ` Alexander Voinov
2010-01-05 7:01 ` Erik de Castro Lopo
2010-01-05 7:31 ` Daniel Bünzli
2010-01-05 11:28 ` Jon Harrop
2010-01-05 16:55 ` Laurent Le Brun
2010-01-05 8:13 ` Jon Harrop
2010-01-05 10:27 ` Alain Frisch
2010-01-05 10:44 ` Nicolas Pouillard [this message]
2010-01-05 13:00 ` Alain Frisch
2010-01-05 13:11 ` Nicolas Pouillard
2010-01-05 14:14 ` Hugo Ferreira
2010-01-05 8:45 ` Maxence Guesdon
2010-01-05 11:23 ` Jon Harrop
2010-01-05 10:50 ` Maxence Guesdon
2010-01-05 10:24 ` Vincent Aravantinos
2010-01-05 11:02 ` Richard Jones
2010-01-05 10:58 ` Richard Jones
2010-01-05 12:21 ` Florent Ouchet
2010-01-05 17:32 ` Tim Hanson
2010-01-05 13:09 ` Martin DeMello
2010-01-05 6:21 Gaius Hammond
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=1262688075-sup-7836@peray \
--to=nicolas.pouillard@gmail.com \
--cc=alain@frisch.fr \
--cc=caml-list@yquem.inria.fr \
--cc=jon@ffconsultancy.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