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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.189.131 with SMTP id x125mr12871479ite.37.1514078103579; Sat, 23 Dec 2017 17:15:03 -0800 (PST) X-Received: by 10.157.82.148 with SMTP id f20mr838815oth.2.1514078103461; Sat, 23 Dec 2017 17:15:03 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!2.eu.feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!i6no2006144itb.0!news-out.google.com!b73ni6740ita.0!nntp.google.com!i6no2006138itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 23 Dec 2017 17:15:03 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=174.114.57.218; posting-account=yfhumQoAAACUMOSAPBmheMxZJWoNg1wi NNTP-Posting-Host: 174.114.57.218 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2d87298a-4d1f-446a-9d46-d4f03879246b@googlegroups.com> Subject: Writing a scanner and parser in Ada From: Yves Cloutier Injection-Date: Sun, 24 Dec 2017 01:15:03 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 1749 X-Received-Body-CRC: 1551895538 Xref: reader02.eternal-september.org comp.lang.ada:49618 Date: 2017-12-23T17:15:03-08:00 List-Id: Hi there,=20 I'm new to Ada, but not to programming. I'd like to know if there are any examples of how to write a scanner and pa= rser in Ada. I have a pet project where I have a DSL that I want to use as input, scan, = parse, then output as Groff code. I've done a working prototype in Perl, but have been putting off writing it= in a real :) programming language. I'd rather not touch C. I started a skeleton in D but I've always wanted to= put some effort into learning Ada. From what I've seen it seems like a st= rong and mature language, but the very small number of books out there (and= most only covering until Ada95) have made it a bit offputting. But lets se= e what I can do anyways!