From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Filippo A. Salustri" Subject: Re: Formal description of Org files Date: Fri, 15 Apr 2011 09:52:56 -0400 Message-ID: References: <4213EBED-2EFC-413F-8618-2A594AECEDCF@gmail.com> <87d3knk6wx.fsf@sbs.ch> <592F7F38-63DD-4986-B060-0EDC58FA693E@agfa.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e0cb4e43cd31e7ed6904a0f55bfa Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAjSI-0007tG-SN for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 09:53:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAjSE-0008Bp-HY for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 09:53:02 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:56511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAjSE-0008Bj-64 for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 09:52:58 -0400 Received: by wwb39 with SMTP id 39so2759986wwb.30 for ; Fri, 15 Apr 2011 06:52:56 -0700 (PDT) In-Reply-To: <592F7F38-63DD-4986-B060-0EDC58FA693E@agfa.com> 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: Peter Frings Cc: Christian Egli , emacs-orgmode mailing list --e0cb4e43cd31e7ed6904a0f55bfa Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Antlr is just another in a long line of lexical parsers. I still remember the original lex (for lexical analysis), which in combination with yacc (fo= r parsing and grammar) could make pretty much any conventional programming language. Then GNU came up with Flex (fast lex) and Bison (instead of yacc...get it? :) Then IDEs really started to take off and much of the ugly parts of writing languages disappeared, which led to all kinds of new tools like antlr. But they all basically do the same thing: let one describe the syntax and grammar of (quasi) formal (programming) languages. I don't know if any of them produce diagrams, but I wouldn't be surprised i= f at least some did. Cheers. Fil On 15 April 2011 09:42, Peter Frings wrote: > > On 15 Apr 2011, at 14:58, Christian Egli wrote: > > > Carsten Dominik writes: > > > >> 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. > > > > Maybe the person was talking about antlr[1], "ANother Tool for Language > > Recognition, a language tool that provides a framework for constructing > > recognizers, interpreters, compilers, and translators from grammatical > > descriptions containing actions in a variety of target languages=94. > > > > Sounds like an interesting project. > > Wow, if that thing can export syntax diagrams in PNG or PDF I=92d be real= ly > happy. Looks very interesting =97 albeit serious overkill for what I=92d = use it > :-). > > thanks, > Peter. > -- > c++; // this makes c bigger but returns the old value > > > --=20 Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salustri@ryerson.ca http://deseng.ryerson.ca/~fil/ --e0cb4e43cd31e7ed6904a0f55bfa Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Antlr is just another in a long line of lexical parsers. =A0I still remembe= r the original lex (for lexical analysis), which in combination with yacc (= for parsing and grammar) could make pretty much any conventional programmin= g language.
Then GNU came up with Flex (fast lex) and Bison (instead of yacc...get it? = :)
Then IDEs really started to take off and much of the ugly part= s of writing languages disappeared, which led to all kinds of new tools lik= e antlr.

But they all basically do the same thing: let one descr= ibe the syntax and grammar of (quasi) formal (programming) languages.
=

I don't know if any of them produce diagrams, but I= wouldn't be surprised if at least some did.

Cheers.
Fil

On 15 April 2011 09:42, Peter Frings <peter.frings@agfa.com> wrot= e:

On 15 Apr 2011, at 14:58, Christian Egli wrote:

> Carsten Dominik <carst= en.dominik@gmail.com> writes:
>
>> At FOSDEM, someone asked me if there was a formal description of t= he
>> structure of Org files, in some language that would be the input f= or a
>> parser (or parser generator?) so that Org file could be easily par= sed.
>
> Maybe the person was talking about antlr[1], "ANother Tool for La= nguage
> Recognition, a language tool that provides a framework for constructin= g
> recognizers, interpreters, compilers, and translators from grammatical=
> descriptions containing actions in a variety of target languages=94. <snip>

> Sounds like an interesting project.

Wow, if that thing can export syntax diagrams in PNG or PDF I=92d be really= happy. Looks very interesting =97 albeit serious overkill for what I=92d u= se it :-).

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





--
Filippo A. Salus= tri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson Univ= ersity
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5= 000 ext 7749
Fax: 416/979-5265
Email: salustri= @ryerson.ca
http://deseng= .ryerson.ca/~fil/
--e0cb4e43cd31e7ed6904a0f55bfa--