BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BNF for latest Delphi grammar

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OpenToolsAPI
View previous topic :: View next topic  
Author Message
ahmoy law
Guest





PostPosted: Wed Mar 21, 2007 5:56 pm    Post subject: BNF for latest Delphi grammar Reply with 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?
Back to top
John Herbster
Guest





PostPosted: Wed Mar 21, 2007 5:56 pm    Post subject: Re: BNF for latest Delphi grammar Reply with quote



"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





PostPosted: Wed Mar 21, 2007 10:48 pm    Post subject: Re: BNF for latest Delphi grammar Reply with quote



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





PostPosted: Thu Mar 22, 2007 5:20 pm    Post subject: Re: BNF for latest Delphi grammar Reply with 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.
Back to top
Sebastian Modersohn
Guest





PostPosted: Fri Mar 23, 2007 1:15 am    Post subject: Re: BNF for latest Delphi grammar Reply with quote

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





PostPosted: Fri Mar 23, 2007 1:57 am    Post subject: Re: BNF for latest Delphi grammar Reply with quote

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





PostPosted: Sat Apr 14, 2007 12:33 am    Post subject: Re: BNF for latest Delphi grammar Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OpenToolsAPI All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.