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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6c80a8dfed777188 X-Google-Attributes: gid103376,public From: woodruff@tanana.llnl.gov (John Woodruff) Subject: Re: Ada code that is similar to FORTRAN's namelist? Date: 1996/04/11 Message-ID: #1/1 X-Deja-AN: 146827431 distribution: world references: <4kb9af$a93@news2.aero.org> organization: Lawrence Livermore National Lab reply-to: woodruff1@llnl.gov newsgroups: comp.lang.ada Date: 1996-04-11T00:00:00+00:00 List-Id: >>>>> "gene" == Gene Lee writes: > Has anyone written ada code that will read data from a file in a > manner similar to FORTRAN's namelist? Yes. I wrote such a package -- I call it Name_IO, and it is available on the PAL library. Take a look at languages/ada/swcomps/woodruff.zip: File Name Size --------- ---- woodruff.zip 54,875 The file woodruff.zip contains the following files: readme.txt -- introduction support.src -- pager2 source of support routines from New Abstractions -- COMPILE THIS FIRST main.src -- pager2 source of the Woodruff Collection -- COMPILE THIS SECOND testprog.src -- test program Test_Name_IO data.src -- data file used by Test_Name_IO The briefest possible summary is: Name_IO implements name-directed input in a generic package. The package is able to deliver values bound to variables from an input stream that looks like: A = 1.0 ; a floating scalar V := 3, 4, 5 ; a three-vector Filename => "Test.dat;2" ; a string Enum = Users_Enumerated_Constant ; Enumeration value Hope this is useful to you. -- John Woodruff N I F \ ^ / Lawrence Livermore National Lab =====---- < 0 > 510 422 4661 / v \