Pieter Valentijn wrote:
Hi Willem Nice to see your from holland to.
Im sure where all intrested in what ever you can produce.
You seem to have a impressive ambition that is supporten by your
experience.


Sorry in my previous post i made a mistake!
i used the java grammar file in stead of the  pascal grammar file.
i used antlrworks to check the grammar
and this is the result :

[09:12:43] Checking Grammar...
[09:12:43] error(100): pascal.g:1:1: syntax error: antlr: pascal.g:1:1: unexpected token: tkAsciiChar
[09:12:43] java.lang.NullPointerException
   at org.antlr.tool.Grammar.setGrammarContent(Grammar.java:524)
   at org.antlr.tool.Grammar.setGrammarContent(Grammar.java:497)
at org.antlr.works.grammar.EngineGrammar.createNewGrammar(Unknown Source) at org.antlr.works.grammar.EngineGrammar.createCombinedGrammar(Unknown Source)
   at org.antlr.works.grammar.EngineGrammar.createGrammars(Unknown Source)
   at org.antlr.works.grammar.EngineGrammar.analyze(Unknown Source)
   at org.antlr.works.grammar.CheckGrammar.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:619)
so i have to work on both the java and the pascal grammar.

kind regards.

Met vriendelijke groet, Pieter Valentijn Delphidreams
http://www.delphidreams.nl

-----Oorspronkelijk bericht-----
Van: willem [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 23 november 2007 0:56
Aan: lazarus@miraclec.com
Onderwerp: Re: [lazarus] Google's Android OS :)


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.
Grammar is very important as a base to study a language.
I want to start Andromedia.
 The first  effort will be documenting the delphi antlr grammar. I will
use XML for that. because the the delphi grammar can easily be expanded
with an XML specification.

I did study websites with html and javascript. That horrible and it takes a lot of time to understand that kind of thing

well i have 30 years of experience with computing problems
my first computer experience was with the intel 4004 but i am a newby on

this forum.
My intentention is is to start the androida project on sourceforge I
will then publish the delphi grammar for antlr. Experienced Lazarus
developpers can then suggest improvements on this delphi grammar and so it becomes
lazarus grammar. I want to extend the delphi grammar with XML So EBNF
becomes XEBNF !!!


















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


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

Reply via email to