From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Egli Subject: Re: Formal description of Org files Date: Fri, 15 Apr 2011 14:58:38 +0200 Message-ID: <87d3knk6wx.fsf@sbs.ch> References: <4213EBED-2EFC-413F-8618-2A594AECEDCF@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAiby-0002Vg-P1 for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 08:58:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAibx-0004wm-IH for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 08:58:58 -0400 Received: from lo.gmane.org ([80.91.229.12]:52333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAibx-0004wb-Bt for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 08:58:57 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QAibt-0005fL-B1 for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 14:58:53 +0200 Received: from gateway01.sbszh.ch ([217.162.18.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Apr 2011 14:58:53 +0200 Received: from christian.egli by gateway01.sbszh.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Apr 2011 14:58:53 +0200 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: emacs-orgmode@gnu.org Carsten Dominik writes: > At FOSDEM, someone asked me if there was a formal description of the > structure of Org files, in some language that would be the input for a > parser (or parser generator?) so that Org file could be easily parsed. Maybe the person was talking about antlr[1], "ANother Tool for Language Recognition, a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages". It even seems to have preliminary support for generating an elisp parser[2][3] There is also an emacs mode for editing antlr files[4]. Sounds like an interesting project. Thanks Christian Footnotes: [1] http://www.antlr.org/ [2] http://www.antlr.org/wiki/display/ANTLR3/Code+Generation+Targets [3] https://github.com/olabini/antlr-elisp [4] http://antlr-mode.sourceforge.net/ -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland