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: Marcelo de Moraes Serpa
Subject: Re: [O] Formal description of Org files
Date: Mon, 18 Jul 2011 16:02:24 -0500

Hey Bastien!

>Can you tell more about what you mean by "grammar"?

I think Nick pretty much nailed down the description of what a grammar would be. I'm not well-versed in compiler-theory and my real world experience with parsers are limited - I made some pretty hackish parsers in the past but none used a grammar or parser-generator, though.

If having a grammer is so hard, then I think I will just use the elisp regexp-based parsing implementation as a reference :)

@Eric: I would only need some basic syntax highlighting and tab / space handling, as well as folding. I don't mean to implement an online version of the org, since the best place to use org will always be emacs ... or not. Let's see how it goes, I will keep you guys posted.

On Sat, Jul 16, 2011 at 11:56 AM, Bastien <address@hidden> wrote:
Hi Marcelo,

Marcelo de Moraes Serpa <address@hidden> writes:

> I'm creating a web app that interacts with orgmode files and allows
> you to edit orgmode files on the browser. The edit part is not done.

Wow, this would be a really useful tool.  Can't wait to test this!

> I'm quite good at _javascript_, and I wouldn't mind hacking something
> akin to orgmode elisp code and this will be what I'll do if
> everything else fails, but wouldn't using a grammar be a cleaner and
> more elegant solution?

Can you tell more about what you mean by "grammar"?

Back in february, at FOSDEM, someone asked for a description of the
org-mode format specification.  This is still something that needs to be
done.  Any stab at this (on Worg) would be really nice.  You can start
anywhere (headlines, TODO keywords, etc.)

If the "grammar" needs to be described in a specific format (more than
just a formal description of the various syntactic elements of an Org
file), let us know.

Thanks,

--
 Bastien


reply via email to

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