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.182.109.200 with SMTP id hu8mr6668731obb.20.1391801551452; Fri, 07 Feb 2014 11:32:31 -0800 (PST) X-Received: by 10.140.93.109 with SMTP id c100mr81298qge.16.1391801551410; Fri, 07 Feb 2014 11:32:31 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!c10no11797182igq.0!news-out.google.com!s3ni10345qas.0!nntp.google.com!f11no13520792qae.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 7 Feb 2014 11:32:31 -0800 (PST) In-Reply-To: <5a341bef-ace4-468c-b5b6-55d46868d802@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:120b:2c65:d7b0:1d1e:3608:20ba:a788; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:120b:2c65:d7b0:1d1e:3608:20ba:a788 References: <5a341bef-ace4-468c-b5b6-55d46868d802@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3bf49b0e-d6ec-4b00-9461-c0782bdc0c69@googlegroups.com> Subject: Re: Tools Generating Ada From: gautier_niouzes@hotmail.com Injection-Date: Fri, 07 Feb 2014 19:32:31 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:18432 Date: 2014-02-07T11:32:31-08:00 List-Id: > I have a question regarding Ada Code Generation tools, like Aflex / Ayacc= for instance. How can I insert them into the automatic build process ? I u= se GNAT=A0GPL, so is it possible to create a GPRBuild project that generate= s Ada files from an AYacc source and then compile the Ada sources ? Do I ne= ed to use a make file ? Where can I find examples ? The Ayacc/Aflex tools generate Ada source files (1) which are for instance = an Ada code generator (2). So Ada sources are generated at two levels! So not sure what you want to do exactly... The parser (1) needs to be compiled only when you change the .y / .l files = (parser grammar / lexer). Code generated at (2) needs to be compiled when the input side of the code = generator has changed. You can for instance configure the code generator to call gprbuild each tim= e the generator has finished generating the Ada sources. As an example where the latter is automatized, there is GWenerator ( see @ = http://sf.net/projects/gnavi/ ) which does all that automatically. You can continue using the GNAT Programming Studio while letting GWenerator= running in the background. For other examples, with no automatic activation, I have also two other Ada= code generators and a few other ayacc tools if you are interested (all ope= n source). HTH _________________________ Gautier's Ada programming http://gautiersblog.blogspot.com/search/label/Ada NB: follow the above link for a valid e-mail address