On Fri, Nov 23, 2007 at 12:56:21AM +0100, willem wrote:
> Marco van de Voort wrote:
>> On Thu, Nov 22, 2007 at 07:52:59PM +0100, willem wrote:
>>   
>>> I know that the lazarus grammar is based on yacc
>>>     
> 
> I did some google search on the fpc
> I do know that google searches results are not always correct.
> I a a newby to the lazarus project.
> but i did study compiler comnstruction 30 years ago.
> Pascal has been founded by Prof niklaus Wirth as an an educational computer 
> language
> and he has extended the backus -nauer form to EBNF.
> Well I am going to extend ENBF with XML.

Why? EBNF to readable?

> Grammar is very important as a base to study a language.

Certainly. Though not always for compiler construction. But more
importantly, regardless if you use it for a compiler or not, it needs to be
correct.  And validating is an huge problem, since there is no complete
description of the Delphi language anywhere.

The only argument I heard that it is "you downloaded it from the net".

> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>> 
>> The FPC is recursive descent and is not based on yacc. Syntax highlighter
>> parsers don't have to be 100% correct.
>> 
>>   
>>>> Before you start you might also learn your target better, and at least 
>>>> have
>>>> an idea how you are going to tackle porting unmanaged constructs to a
>>>> managed version.
>>>>         
>>> Sorry you are wrong.
>>> I have already the delphi grammar for antlr
>>>     
>> 
>> There is even one in the Delphi's manual. But even that is not complete. 
>> How
>> can you be so sure yours is? 
>> _________________________________________________________________
>>      To unsubscribe: mail [EMAIL PROTECTED] with
>>                 "unsubscribe" as the Subject
>>    archives at http://www.lazarus.freepascal.org/mailarchives
>> 
>>   
> 
> _________________________________________________________________
>     To unsubscribe: mail [EMAIL PROTECTED] with
>                "unsubscribe" as the Subject
>   archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to