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.236.145.34 with SMTP id o22mr4119447yhj.22.1382649078559; Thu, 24 Oct 2013 14:11:18 -0700 (PDT) X-Received: by 10.49.96.162 with SMTP id dt2mr106797qeb.29.1382649077746; Thu, 24 Oct 2013 14:11:17 -0700 (PDT) Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!o2no24627555qas.0!news-out.google.com!z6ni90232pbu.0!nntp.google.com!i2no32185659qav.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 24 Oct 2013 14:11:17 -0700 (PDT) In-Reply-To: <52694f8d$0$6630$9b4e6d93@newsspool2.arcor-online.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=144.64.29.158; posting-account=qOKjyQoAAACkueA1sEk2JOzdoAkAN1Qg NNTP-Posting-Host: 144.64.29.158 References: <52694f8d$0$6630$9b4e6d93@newsspool2.arcor-online.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ada 2012 grammar From: David Pereira Injection-Date: Thu, 24 Oct 2013 21:11:18 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Original-Bytes: 1991 Xref: number.nntp.dca.giganews.com comp.lang.ada:183721 Date: 2013-10-24T14:11:17-07:00 List-Id: Quinta-feira, 24 de Outubro de 2013 17:49:17 UTC+1, G.B. escreveu: > On 24.10.13 17:01, David Pereira wrote: > > > Hi all, > > > > > > Does anyone know if there is available a complete grammar for Ada 2012, lets say, in Flex+Bison or similar compiler construction tool-chain? > > > > > > I would like to extend it to some new contract constructs, but writing a complete parser is a huge (and extremely time-consuming) task that I would like to avoid :). > > > > The latest Emacs Ada Mode (5.00) has a Wisent style grammar > > for Ada 2012. "Copyright (C) 2012 Free Software Foundation, Inc." > > It could be usable after editing it a little. Dear G.B, Very nice hint! I am a Emacs user, but didn't occurred that to me (shame on me :p). Thanks, David