From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Frings Subject: Re: Formal description of Org files Date: Fri, 15 Apr 2011 13:50:40 +0200 Message-ID: <71B98092-E488-4521-B545-4C3E4973D29C@agfa.com> References: <4213EBED-2EFC-413F-8618-2A594AECEDCF@gmail.com> <4DA807D0.8050207@diplan.de> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAhXz-0008Gl-K5 for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 07:50:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAhXy-0006qd-CZ for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 07:50:47 -0400 Received: from mornm02-out.agfa.com ([134.54.1.77]:29151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAhXy-0006qP-2m for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 07:50:46 -0400 In-Reply-To: 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: Carsten Dominik , emacs-orgmode mailing list Cc: Rainer Stengele On 15 Apr 2011, at 12:57, Carsten Dominik wrote: > On Apr 15, 2011, at 10:54 AM, Rainer Stengele wrote: >=20 >> Am 15.04.2011 09:58, schrieb Carsten Dominik: >>> Hi, >>>=20 >>> I have a question. >>>=20 >>> 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. >> Hi, >>=20 >> maybe Backus-Naur was meant? >=20 > That is very well possible. Sounds like a word I would not have = recognized.... > So would on Org-mode grammar start like this? > headline> ::=3D "*"+ > > > <opt-tags> >=20 > <opt-todo-keyword> ::=3D <whitespace> <todo-keyword> | =93=94 <snip> Yes, that seems like extended BN. [1] Good luck with it! You=92ll need it... :-) [1] http://en.wikipedia.org/wiki/Extended_Backus=96Naur_Form Cheers, Peter. --=20 c++; // this makes c bigger but returns the old value