comp.lang.ada
 help / color / mirror / Atom feed
From: Geoff Bull <gbull@acenet.com.au>
Subject: Re: Ada grammar
Date: 2000/05/12
Date: 2000-05-12T00:00:00+00:00	[thread overview]
Message-ID: <391B6BC1.5F9A0982@acenet.com.au> (raw)
In-Reply-To: uzopxgj6j.fsf@infomatch.com



Ray Blaak wrote:
> 
> Geoff Bull <gbull@acenet.com.au> writes:
> > I can't see why they would have to use the clients compiler.
> > Couldn't they just bundle gnat with their application?
> 
> Assuming the product is a commercial one, is one even allowed to do this under
> copyleft?

So long as you don't try to hoard any modifications to gnat.
The GPL is fairly easy to read.

> Gnat is  pretty big, and its installation is not completely trivial.

Ok, it is big.
But I would argue that the instalation IS completely trivial.
(especially since the user of such a tool can be expected to
 have a reasonable level of competency).


> The parser was a third-party tool,
> used precisely to save on the effort of developing one from scratch. It also
> was the major source of bugs, not because of errors in the parser
> implementation, but because its design did not fit well with the needs of the
> tool that was using it. 
> We ended up writing a Java parser from scratch anyways
> so as to have complete control over how information was extracted from the
> source files.

I don't see how you can extend this experience to reject the use 
of ASIS out of hand. ASIS was specifically designed for tools
such as the originally poster had in mind.

> 
> Once you have done a number of parsers for a number of languages, 
> writing another one is less of a daunting task than one would think.

I wrote a VHDL parser and I have had a good look at the gnat source.
I still find the idea of writing an Ada parser daunting.

> Note too, that there are better technologies than lex/yacc that 
> are more powerful, allowing for grammars that are easier to write
> and faster development times.

It is beyond me why people use lex for other than quick and dirty jobs,
writing custom lexers is so easy (and they are sooo much faster!)


> If you want a challenging task, try writing a Delphi parser sometime. The
> quirks and irregularities of that language make the grammars interesting to
> say the least. 
This is especially daunting since , TMK, Delphi's grammar is not
formally defined and changes at the whim of the owner's of that
language (as does the name of their company!).




  parent reply	other threads:[~2000-05-12  0:00 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-05  0:00 Ada grammar bradders
2000-05-05  0:00 ` Ira D. Baxter
2000-05-05  0:00 ` Gautier
2000-05-05  0:00 ` tmoran
2000-05-05  0:00 ` Robert Dewar
2000-05-08  0:00   ` bradders
2000-05-08  0:00     ` Ted Dennison
2000-05-08  0:00     ` Robert Dewar
2000-05-08  0:00       ` Ted Dennison
2000-05-08  0:00         ` Robert Dewar
2000-05-08  0:00           ` Ted Dennison
2000-05-09  0:00         ` Pascal Obry
2000-05-09  0:00           ` Samuel T. Harris
2000-05-08  0:00       ` baysinger
2000-05-08  0:00       ` Samuel T. Harris
2000-05-08  0:00     ` David C. Hoos, Sr.
2000-05-08  0:00       ` Ted Dennison
2000-05-08  0:00         ` Tucker Taft
2000-05-09  0:00     ` Ray Blaak
2000-05-10  0:00       ` Ira D. Baxter
2000-05-11  0:00       ` Geoff Bull
2000-05-10  0:00         ` Ken Garlington
2000-05-11  0:00           ` dale
2000-05-11  0:00             ` Ken Garlington
2000-05-13  0:00           ` Robert Dewar
2000-05-11  0:00         ` Ray Blaak
2000-05-11  0:00           ` Ted Dennison
2000-05-13  0:00             ` Robert Dewar
2000-05-12  0:00           ` Geoff Bull [this message]
2000-05-12  0:00             ` Robert A Duff
2000-05-13  0:00               ` Robert Dewar
2000-05-30  0:00                 ` bradders
2000-05-30  0:00                   ` Robert A Duff
2000-05-12  0:00             ` Ray Blaak
2000-05-12  0:00               ` Samuel T. Harris
2000-05-08  0:00 ` Tucker Taft
  -- strict thread matches above, loose matches on Subject: below --
1999-01-07  0:00 ADA grammar JamesO
1999-01-08  0:00 ` Tucker Taft
1999-01-08  0:00   ` Tucker Taft
1999-01-08  0:00     ` JamesO
1999-01-11  0:00     ` Tom Moran
1991-06-10 14:30 Orsi Jean-Christophe
1990-12-14 20:08 Ada grammar sivesh pradhaan
1990-09-06 21:03 ada grammar gene
1990-07-05 16:26 Ada Grammar Rindert Schutten
1988-02-04 19:57 ADA grammar Joe Gallagher
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox