From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Re: Formal description of Org files Date: Mon, 18 Jul 2011 16:02:24 -0500 Message-ID: References: <4213EBED-2EFC-413F-8618-2A594AECEDCF@gmail.com> <877hav8lup.fsf@gmail.com> <2970.1302892280@alphaville.americas.hpqcorp.net> <20110420123741.GA21304@buga.lan> <87aacew4el.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015174c1562e566d104a85e5035 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiuxT-0005P5-FA for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 17:02:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiuxO-0006q8-Sj for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 17:02:31 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:64715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiuxO-0006q0-77 for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 17:02:26 -0400 Received: by eyx24 with SMTP id 24so3344434eyx.19 for ; Mon, 18 Jul 2011 14:02:24 -0700 (PDT) In-Reply-To: <87aacew4el.fsf@gnu.org> 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: Bastien Cc: Nick Dokos , emacs-orgmode mailing list , Carsten Dominik --0015174c1562e566d104a85e5035 Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > Hi Marcelo, > > Marcelo de Moraes Serpa 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 > --0015174c1562e566d104a85e5035 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hey Bastien!

>Can you t= ell more about what you mean by "grammar"?

I t= hink Nick pretty much nailed down the description of what a grammar would b= e. 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 b= ut none used a grammar or parser-generator, though.

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

@Eric: I would only need some basic syntax highlig= hting and tab / space handling, as well as folding. I don't mean to imp= lement an online version of the org, since the best place to use org will a= lways 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 <bzg@altern.org>= ; wrote:
Hi Marcelo,

Marcelo de Moraes Serpa <celoserp= a@gmail.com> writes:

> I'm creating a web app that interacts with orgmode files and allow= s
> you to edit orgmode files on the browser. The edit part is not done.
Wow, this would be a really useful tool. =A0Can't wait to test th= is!

> I'm quite good at Javascript, and I wouldn't mind hacking some= thing
> 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 a= nd
> 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. =A0This is still something that needs to be<= br> done. =A0Any stab at this (on Worg) would be really nice. =A0You can start<= br> 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,

--
=A0Bastien

--0015174c1562e566d104a85e5035--