Re: [fpc-pascal] BNF grammar for fpc

2009-10-18 Thread leledumbo
> That may be because it is no longer possible to write a BNF grammar for > these compilers due to the c-style extensions. AFAIK if a parser can be made for an extension, so is the grammar. > There are some language constructs that is simply not posible with a LL(1) > parser, > when comparing to

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Mehmet Erol Sanliturk
Marc Santhoff wrote: Am Freitag, den 16.10.2009, 22:50 +0200 schrieb Graeme Geldenhuys: 2009/10/15 Marc Santhoff : is a complete grammar for fpc written in some variant of BNF available somewhere? ... If you have fun fiddling with those tools some good starting points are: http://catalog.

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Marc Santhoff
Am Freitag, den 16.10.2009, 22:50 +0200 schrieb Graeme Geldenhuys: > 2009/10/15 Marc Santhoff : > > > > is a complete grammar for fpc written in some variant of BNF available > > somewhere? > > About 2 weeks ago, I had no clue what BNF was. Funny that you mention > it, because I am working on a La

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Graeme Geldenhuys
2009/10/15 Marc Santhoff : > > is a complete grammar for fpc written in some variant of BNF available > somewhere? About 2 weeks ago, I had no clue what BNF was. Funny that you mention it, because I am working on a LaTeX converter to IPF. I was google'ing for a BNF for LaTeX, as a starting point.

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Marc Santhoff
Am Donnerstag, den 15.10.2009, 23:58 -0700 schrieb leledumbo: > > is a complete grammar for fpc written in some variant of BNF available > > somewhere? > > > > I searched the website and the wiki, to no avail. > > AFAIK, there's none. The developers adding language features by directly > modifyin

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Felipe Monteiro de Carvalho
On Fri, Oct 16, 2009 at 4:58 AM, leledumbo wrote: > AFAIK, there's none. The developers adding language features by directly > modifying the code. Even there's a bounty for it. See: > http://wiki.lazarus.freepascal.org/Bounties#FPC_grammar I contacted the person that posted the bounty but he didn

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Vinzent Höfler
mar...@stack.nl: > The reason is probably more because Wirthian languages traditionally use > recursive descent parsers. Yeah, right. The reason is most definitely that of all those people who know the language well enough to write the grammar, there's no one actually doing it. Of course, with

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Florian Klaempfl
Florian Klaempfl schrieb: > Frank Peelo schrieb: >> Is the problem that you start off with a grammar, write the parser, then >> maintain the parser without updating the grammar? >> > > Every early FPC (FPK Pascal) prototypes in 1993 used yacc as well but it Very early ...

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Florian Klaempfl
Frank Peelo schrieb: > > Is the problem that you start off with a grammar, write the parser, then > maintain the parser without updating the grammar? > Every early FPC (FPK Pascal) prototypes in 1993 used yacc as well but it was simply too slow and also memory consuming at these days. __

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Frank Peelo
On 16/10/2009 10:53, Florian Klaempfl wrote: Marco van de Voort schrieb: In our previous episode, J�rgen Hestermann said: There is not even a proper open one for Delphi. At least there wasn't till a while back. That may be because it is no longer possible to write a BNF grammar for these c

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Marco van de Voort
In our previous episode, Florian Klaempfl said: > >> these compilers due to the c-style extensions. > > > > Odd that there are grammers for C and C++ then, and they have no problem :-) > > Please don't grab any random other thread to make your point. > > > > The reason is probably more because Wi

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Gerard N/A
On Thu, Oct 15, 2009 at 9:28 PM, Marc Santhoff wrote: > is a complete grammar for fpc written in some variant of BNF available > somewhere? > Gold parser builder has a BNF grammar for Delphi 7 (AFAIK, incomplete): http://www.devincook.com/goldparser/grammars/index.htm Regards, Gerard. ___

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Torsten Bonde Christiansen
The reason is probably more because Wirthian languages traditionally use recursive descent parsers. gcc as well for several years simply because a recursive descent parser is faster than one generated automatically from a BNF grammar. That is true, but the _expression_ po

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Florian Klaempfl
Marco van de Voort schrieb: > In our previous episode, J�rgen Hestermann said: >>> There is not even a proper open one for Delphi. At least there wasn't till a >>> while back. >> That may be because it is no longer possible to write a BNF grammar for >> these compilers due to the c-style extension

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Marco van de Voort
In our previous episode, J?rgen Hestermann said: > > There is not even a proper open one for Delphi. At least there wasn't till a > > while back. > > That may be because it is no longer possible to write a BNF grammar for > these compilers due to the c-style extensions. Odd that there are gramme

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Jonas Maebe
On 16 Oct 2009, at 10:42, Jürgen Hestermann wrote: That may be because it is no longer possible to write a BNF grammar for these compilers due to the c-style extensions. BNF grammars exist for C (e.g. as part of the ANSI C standard) and even for C++. Please don't start a language war in ev

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Jürgen Hestermann
There is not even a proper open one for Delphi. At least there wasn't till a while back. That may be because it is no longer possible to write a BNF grammar for these compilers due to the c-style extensions. ___ fpc-pascal maillist - fpc-pascal@lis

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Marco van de Voort
In our previous episode, leledumbo said: > > > is a complete grammar for fpc written in some variant of BNF available > > somewhere? > > > > I searched the website and the wiki, to no avail. > > AFAIK, there's none. The developers adding language features by directly > modifying the code. Even t

Re: [fpc-pascal] BNF grammar for fpc

2009-10-15 Thread leledumbo
> is a complete grammar for fpc written in some variant of BNF available > somewhere? > > I searched the website and the wiki, to no avail. AFAIK, there's none. The developers adding language features by directly modifying the code. Even there's a bounty for it. See: http://wiki.lazarus.freepasc

[fpc-pascal] BNF grammar for fpc

2009-10-15 Thread Marc Santhoff
Hi everyone, is a complete grammar for fpc written in some variant of BNF available somewhere? I searched the website and the wiki, to no avail. TIA, Marc -- Marc Santhoff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.free