From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Witte Subject: Re: Formal description of Org files Date: Mon, 18 Jul 2011 11:30:50 +0200 Message-ID: References: <4213EBED-2EFC-413F-8618-2A594AECEDCF@gmail.com> <877hav8lup.fsf@gmail.com> <2970.1302892280@alphaville.americas.hpqcorp.net> <20110420123741.GA21304@buga.lan> <87aacew4el.fsf@gnu.org> <87k4bg1oum.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf302d489ea59e6b04a854a71a Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QikAH-0002lb-Ul for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 05:31:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QikA8-0004MT-4O for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 05:31:01 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:52308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QikA7-0004MJ-LL for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 05:30:51 -0400 Received: by yxj17 with SMTP id 17so1361254yxj.0 for ; Mon, 18 Jul 2011 02:30:50 -0700 (PDT) In-Reply-To: <87k4bg1oum.fsf@gmail.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: Bastien , Nick Dokos , emacs-orgmode mailing list , Marcelo de Moraes Serpa , Carsten Dominik --20cf302d489ea59e6b04a854a71a Content-Type: text/plain; charset=ISO-8859-1 On 18 July 2011 01:14, Eric Schulte wrote: > > As I mentioned earlier in this thread, I think any formal expression > would be more useful if could be fed to existing parser-generation tools > to automatically write Org-mode parsers, or perhaps automatically > convert between Org-mode and other document formats. I'm not sure > however to what degree that is just wishful thinking.. > > Perhaps Pandoc (http://johnmacfarlane.net/pandoc/) would meet those requirements. It uses a great parsing library with a syntax that greatly resembles a BNF grammar. An output module is already written for org-mode, so writing an input module would allow us to convert from org-mode to any other of the existing Pandoc output formats (including "plain text, markdown, reStructuredText, HTML , LaTeX , ConTeXt , PDF, RTF , DocBook XML, OpenDocument XML , ODT, GNU Texinfo , MediaWiki markup, textile , groff manpages, Emacs org-mode , EPUB ebooks, and S5 and SlidyHTML slide shows"). I've been thinking of doing this for sometime now, as an exercise in learning Haskell, but realistically I just don't have the time. does anyone else have the time? Chris. --20cf302d489ea59e6b04a854a71a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 18 July 2011 01:14, Eric Schulte <schulte.eric@gmail.com> wrote:

As I mentioned earlier in this thread, I think any formal expression
would be more useful if could be fed to existing parser-generation tools to automatically write Org-mode parsers, or perhaps automatically
convert between Org-mode and other document formats. =A0I'm not sure however to what degree that is just wishful thinking..


Perhaps Pandoc (http://johnmacfarlane.net/pandoc/) would meet those re= quirements.=A0 It uses a great parsing library with a syntax that greatly r= esembles a BNF grammar.=A0 An output module is already written for org-mode= , so writing an input module would allow us to convert from org-mode to any= other of the existing Pandoc output formats (including "plain text, <= a href=3D"http://daringfireball.net/projects/markdown/">markdown, reStr= ucturedText, HTML, LaTeX, ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki markup, textile, groff man pages, Emacs org-mode, EPUB ebo= oks, and S5 and Slidy HTML slide shows").= =A0 I've been thinking of doing this for sometime now, as an exercise i= n learning Haskell, but realistically I just don't have the time.=A0 do= es anyone else have the time?

Chris.
--20cf302d489ea59e6b04a854a71a--