[comp.lang.ada] YACC and LEX for Ada

jwabik@umn-d-ub.D.UMN.EDU (Jeff Wabik) (09/22/87)

A while back I posted asking for a YACC and LEX for Ada..  Again, many thanks
to Herm Fischer@Litton Data Systems for sending me a superb version that
nearly paralleled the "Reference Manual for the Ada Prorgamming Language",
ANSI/MIL-STD-1815A-1983, standard.  Upon receiving the goodies, though,
I had a few problems:

	1)  The YACC grammar tried to carbon copy the syntax specs
	    in the standards manual so closely that its format 
	    was nearly unreadable to the acquainted YACCer.

	2)  Aside from being case sensitive (which is an error), the
	    LEX was written such that it required a "bigger" LEX 
	    than I had access to.  (Bizarre LEX messages saying
	    things like "Not enough table space", etc.. )


Solutions:

	1)  I completely reformatted the YACC so it looks like
	    "standard" BNF (at least all the BNF I've ever seen);
	    Much Much easier to read.
	 
	2)  I re-wrote the LEX such that it's now case sensitive
	    (which is correct), and can be fed through the >smallest<
	    LEX. 

If anyone would like to get a copy of these touched-up goodies, please 
drop me a note..  I've already forwarded Herm Fischer my patch job,
so he should have it too.

	Me: 	ARPA:	jwabik@ub.d.umn.edu
		UUCP:	umn-cs!umnd-cs!jwabik
			umn-cs!shamash!jwabik

	Herm:	ARPA:	HFischer@eclb.ARPA
		UUCP:	{cepu,trwrb}!litvax!fischer


      -Jeff