| View previous topic :: View next topic |
| Author |
Message |
ahmoy law Guest
|
Posted: Wed Mar 21, 2007 5:56 pm Post subject: BNF for latest Delphi grammar |
|
|
Hi all,
Where can i find the complete BNF for lastest Delphi frammar? or there will none since if not mistaken delphi grammar is too complicated to describe using a normal BNF? |
|
| Back to top |
|
 |
John Herbster Guest
|
Posted: Wed Mar 21, 2007 5:56 pm Post subject: Re: BNF for latest Delphi grammar |
|
|
"ahmoy law" wrote
| Quote: | Where can I find the complete BNF for latest Delphi
[grammar]? or there will none since if not mistaken
delphi grammar is too complicated to describe
using a normal BNF?
|
Interesting timing! There is an obituary just posted for
John Backus in the borland.public.delphi.non-technical
group. --JohnH |
|
| Back to top |
|
 |
Charles McAllister Guest
|
Posted: Wed Mar 21, 2007 10:48 pm Post subject: Re: BNF for latest Delphi grammar |
|
|
ahmoy law wrote:
| Quote: | Hi all,
Where can i find the complete BNF for lastest Delphi frammar? or there will none since if not mistaken delphi grammar is too complicated to describe using a normal BNF?
|
as far as i know there does not exist a formal grammar for Delphi.
there is an open-source parser at http://codewrench.sourceforge.net/
which can parse D7 syntax.
there are other parsers around as well |
|
| Back to top |
|
 |
Mauro Venturini Guest
|
Posted: Thu Mar 22, 2007 5:20 pm Post subject: Re: BNF for latest Delphi grammar |
|
|
"ahmoy law" <ahmoylaw (AT) gmail (DOT) com> wrote in message
news:46011d61$1 (AT) newsgroups (DOT) borland.com...
|
| Hi all,
|
| Where can i find the complete BNF for lastest Delphi frammar? or there will
none since if not mistaken delphi grammar is too complicated to describe using a
normal BNF?
Full BNF for Delphi 7 was provided in appendix A of the Delphi language Guide
(available both as PDF file or as real paper). To my knowledge later versions
missed it but the new extensions used very few new syntactic elements and it
should be quite an easy exercise to extend D7's BNF. |
|
| Back to top |
|
 |
Sebastian Modersohn Guest
|
Posted: Fri Mar 23, 2007 1:15 am Post subject: Re: BNF for latest Delphi grammar |
|
|
| Quote: | Full BNF for Delphi 7 was provided in appendix A of the Delphi language
Guide
(available both as PDF file or as real paper). To my knowledge later
versions
missed it but the new extensions used very few new syntactic elements and
it
should be quite an easy exercise to extend D7's BNF.
|
You must be kidding. Nested types, class operators and class helpers alone
should extend the grammar quite extensively!
--
Sebastian |
|
| Back to top |
|
 |
Mauro Venturini Guest
|
Posted: Fri Mar 23, 2007 1:57 am Post subject: Re: BNF for latest Delphi grammar |
|
|
Considering that BNF describes syntax but not semantic and that all D7's BNF is
less than 300 (very short) lines I'm not kidding at all. Anyway, I only meant to
give information, do as you like with it.
| You must be kidding. Nested types, class operators and class helpers alone
| should extend the grammar quite extensively!
|
| --
| Sebastian |
|
| Back to top |
|
 |
Simon Giles Guest
|
Posted: Sat Apr 14, 2007 12:33 am Post subject: Re: BNF for latest Delphi grammar |
|
|
Mauro Venturini wrote:
| Quote: | "ahmoy law" <ahmoylaw (AT) gmail (DOT) com> wrote in message
news:46011d61$1 (AT) newsgroups (DOT) borland.com...
|
| Hi all,
|
| Where can i find the complete BNF for lastest Delphi frammar? or there will
none since if not mistaken delphi grammar is too complicated to describe using a
normal BNF?
Full BNF for Delphi 7 was provided in appendix A of the Delphi language Guide
(available both as PDF file or as real paper). To my knowledge later versions
missed it but the new extensions used very few new syntactic elements and it
should be quite an easy exercise to extend D7's BNF.
|
The BNF in appendix A of the Delphi 7 language guide looked like it was
written by an intern or something. It was riddled with inaccuracies.
Check the Free Pascal Compiler project as I think they have an up to
date, and accurate grammar. |
|
| Back to top |
|
 |
|