emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Formal description of Org files


From: Peter Frings
Subject: Re: [O] Formal description of Org files
Date: Fri, 15 Apr 2011 13:50:40 +0200

On 15 Apr 2011, at 12:57, Carsten Dominik wrote:

> On Apr 15, 2011, at 10:54 AM, Rainer Stengele wrote:
> 
>> Am 15.04.2011 09:58, schrieb Carsten Dominik:
>>> Hi,
>>> 
>>> I have a question.
>>> 
>>> 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.

<snip>

>> Hi,
>> 
>> 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?

> headline> ::= "*"+ <opt-todo-keyword>
>                    <opt-priority-cookie>
>                    <title>
>                    <opt-tags>
> 
> <opt-todo-keyword> ::= <whitespace> <todo-keyword> | “”
<snip>

Yes, that seems like extended BN. [1]
Good luck with it! You’ll need it... :-)

[1] http://en.wikipedia.org/wiki/Extended_Backus–Naur_Form


Cheers,
Peter.
-- 
c++;         // this makes c bigger but returns the old value




reply via email to

[Prev in Thread] Current Thread [Next in Thread]