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:03:58 -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=00032555b5fa7abd2c04a85e56d1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qiuyz-0005je-BA for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 17:04:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qiuyt-00073H-O1 for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 17:04:05 -0400 Received: from mail-fx0-f52.google.com ([209.85.161.52]:61648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qiuyt-000737-86 for emacs-orgmode@gnu.org; Mon, 18 Jul 2011 17:03:59 -0400 Received: by fxd18 with SMTP id 18so5885916fxd.39 for ; Mon, 18 Jul 2011 14:03:58 -0700 (PDT) In-Reply-To: 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 --00032555b5fa7abd2c04a85e56d1 Content-Type: text/plain; charset=ISO-8859-1 > > If having a grammer is so hard, then I think I will just use the elisp > regexp-based parsing implementation as a reference :) By the way, that's what this guy did in this Ruby gem: https://github.com/bdewey/org-ruby Cheers, - Marcelo. On Mon, Jul 18, 2011 at 4:02 PM, Marcelo de Moraes Serpa < celoserpa@gmail.com> wrote: > 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 >> > > --00032555b5fa7abd2c04a85e56d1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
If having a grammer is so hard, then I think I will just use the elisp rege= xp-based parsing implementation as a reference :)

By the way, that's what this guy did in this Ruby gem:


Cheers,

-= Marcelo.

On Mon, Jul 18, 2011 at 4:02 PM= , Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:
Hey Bastien!

>Can you tell more about what you mean by "grammar&quo= t;?

I think Nick pretty much nailed down the description o= f what a grammar would be. I'm not well-versed in compiler-theory and m= y real world experience with parsers are limited - I made some pretty hacki= sh 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 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 <celoserpa@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


--00032555b5fa7abd2c04a85e56d1--