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.65.10 with SMTP id x10mr14523980ita.35.1514129619346; Sun, 24 Dec 2017 07:33:39 -0800 (PST) X-Received: by 10.157.90.22 with SMTP id v22mr718991oth.12.1514129619192; Sun, 24 Dec 2017 07:33:39 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer03.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!g80no2170363itg.0!news-out.google.com!s63ni3735itb.0!nntp.google.com!i6no2171739itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 24 Dec 2017 07:33:38 -0800 (PST) In-Reply-To: <2d87298a-4d1f-446a-9d46-d4f03879246b@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5 References: <2d87298a-4d1f-446a-9d46-d4f03879246b@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6cc57da2-d23c-4995-8e8e-7ff8f7c89909@googlegroups.com> Subject: Re: Writing a scanner and parser in Ada From: Lucretia Injection-Date: Sun, 24 Dec 2017 15:33:39 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 1616 X-Received-Body-CRC: 3037713228 Xref: reader02.eternal-september.org comp.lang.ada:49627 Date: 2017-12-24T07:33:38-08:00 List-Id: On Sunday, 24 December 2017 01:15:05 UTC, Yves Cloutier wrote: > Hi there, > > 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 parser in Ada. If you've ever done this in another language the principle is exactly the same, just the syntax is different. https://github.com/stcarrez/ayacc https://github.com/stcarrez/aflex Will get you going using lex/yacc ports.