From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: mlorg : yet another parser for org-mode (Written in OCaml contained in org-mode files) Date: Mon, 27 Feb 2012 09:52:48 -0700 Message-ID: <87d390rzfj.fsf@gmx.com> References: <20120226164145.GA28270@ananas> <20120227170602.GA12110@ananas> 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]:33984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S24Ov-0007Sy-1A for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 12:30:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S24Oq-0004V5-9p for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 12:30:16 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:38837 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1S24Oq-0004Ur-3L for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 12:30:12 -0500 In-Reply-To: <20120227170602.GA12110@ananas> (Simon Castellan's message of "Mon, 27 Feb 2012 18:06:02 +0100") 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: Simon Castellan Cc: Nicolas Goaziou , Alan Schmitt , emacs-orgmode@gnu.org Simon Castellan writes: > 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 started as= an >> > experiment to see if the literate programming mode of org-mode could s= cale 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 meant = mainly > to gather info/document about org's syntax. (But as I said feedbacks welc= ome.) > Hi Simon, 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 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. Cheers, > > Simon. > --=20 Eric Schulte http://cs.unm.edu/~eschulte/