From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!umn-d-ub!jwabik From: jwabik@umn-d-ub.D.UMN.EDU (Jeff Wabik) Newsgroups: comp.lang.ada Subject: YACC and LEX for Ada Message-ID: <37@umn-d-ub.D.UMN.EDU> Date: Tue, 22-Sep-87 16:07:04 EDT Article-I.D.: umn-d-ub.37 Posted: Tue Sep 22 16:07:04 1987 Date-Received: Thu, 24-Sep-87 06:23:01 EDT Organization: U. of Minnesota-Duluth, Computer Center Keywords: Fixed 'em up .. List-Id: 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