From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Castellan Subject: Re: mlorg : yet another parser for org-mode (Written in OCaml contained in org-mode files) Date: Mon, 2 Aug 2010 01:37:38 +0200 Message-ID: <20100801233738.GA18949@litchi> References: <20120226164145.GA28270@ananas> <20120227170602.GA12110@ananas> <87d390rzfj.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2SrY-0006N3-GM for emacs-orgmode@gnu.org; Tue, 28 Feb 2012 14:37:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2SrD-0004e6-1z for emacs-orgmode@gnu.org; Tue, 28 Feb 2012 14:37:28 -0500 Received: from jabiru.ens-lyon.fr ([140.77.51.2]:43855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2SrC-0004dj-S1 for emacs-orgmode@gnu.org; Tue, 28 Feb 2012 14:37:06 -0500 Content-Disposition: inline In-Reply-To: <87d390rzfj.fsf@gmx.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org On lun. 27/f=C3=A9vr. (09:52), Eric Schulte wrote: > Simon Castellan writes: >=20 > > On lun. 27/f=C3=A9vr. (15:27), Alan Schmitt wrote: > >> On 26 f=C3=A9vr. 2012, at 17:41, Simon Castellan wrote: > >>=20 > >> > I have been writing a parser for mlorg files in OCaml. This starte= d as an > >> > experiment to see if the literate programming mode of org-mode cou= ld scale to a > >> > full application (among other things). > >>=20 > >> This looks very interesting, and would very much help in the > >> dissemination of org-mode. Have you thought of announcing it on the > >> caml mailing list? > >>=20 > >> Alan > > > > I have but prefer to wait mlorg to be more complete. This post was me= ant mainly > > to gather info/document about org's syntax. (But as I said feedbacks = welcome.) > > >=20 > Hi Simon, >=20 > Nicolas Goaziou has been working recently on a new emacs-lisp parser of > Org-mode files, with the goals of > 1. standardizing the formal syntax of Org-mode files > 2. parsing Org-mode files to a canonical emacs-lisp list-based > representation in memory (like an Org-mode AST) > 3. re-basing the existing Org-mode exporters off of this canonical > representation >=20 > This work is contained in contrib/lisp/org-element.el, which includes a > large amount of useful commentary at the top of the file. This should > serve as a starting point for learning more about the formal syntax of > Org-mode files (as it is defined). I think that developing parsers for > this syntax in multiple language should be very useful to ensure that a > usable syntax is developed separate from any particular implementation. >=20 > Cheers, >=20 Thank you very much for this pointer, This is what I was looking for : a = list of syntaxic construction in org-mode. I'd say though that it lacks a more-or= -less formal syntaxic definition of constructions. Simon.