Carsten Dominik <carsten.domi...@gmail.com> writes: > On Apr 15, 2011, at 1:50 PM, Peter Frings wrote: > >> >> 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... :-) > > Well, if tis is complicated, I am not going to do this. > But maybe there is a volunteer out there - I'd be happy to > support him or her.
IF there is a need for a lexer and parser may be one should start with the parser that is part of cedet. http://www.emacswiki.org/emacs/HowToSetUpSemanticBovinatorForANewLanguage Jambunathan K. > - Carsten --