From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Formal description of Org files Date: Fri, 15 Apr 2011 12:57:41 +0200 Message-ID: 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=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAgig-0005Hd-0r for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 06:57:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAgif-0003tf-7j for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 06:57:45 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:59511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAgif-0003tZ-3G for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 06:57:45 -0400 Received: by eyd9 with SMTP id 9so806706eyd.0 for ; Fri, 15 Apr 2011 03:57:44 -0700 (PDT) In-Reply-To: <4DA807D0.8050207@diplan.de> 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: Rainer Stengele Cc: emacs-orgmode mailing list On Apr 15, 2011, at 10:54 AM, Rainer Stengele wrote: > 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. >>=20 >> Unfortunately I did not catch the name of the format description = language that could be >> used for something, not did I catch the name of the person who talked = to me. >>=20 >> Can anyone help out here? Let me know what language to use, and = maybe help work on such a formal description? I think it would be = useful to have.... >>=20 >> - Carsten >>=20 > Hi, >=20 > maybe Backus-Naur was meant? That is very well possible. Sounds like a word I would not have = recognized.... So would on Org-mode grammar start like this? = --------------------------------------------------------------------------= ----- ::=3D "*"+ <opt-tags> <opt-todo-keyword> ::=3D <whitespace> <todo-keyword> | "" <opt-priority-cookie> ::=3D <whitespace> <priority-cookie> | "" <opt-tags> ::=3D <whitespace> <tags> | "" <todo-keyword> ::=3D "TODO" | "DONE" <priority-cookie> ::=3D "[" "#" <priority> "]" <priority> ::=3D "A" | "B" | "C" =20 <tags> ::=3D ( ":" <tag> )+ ":" <whitespace> ::=3D " " <opt-whitespace> | "\t" <opt-whitespace> <opt-whitespace> ::=3D <whitespace> | "" = --------------------------------------------------------------------------= -----=