comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Subject: Re: Tools Generating Ada
Date: Fri, 7 Feb 2014 11:32:31 -0800 (PST)
Date: 2014-02-07T11:32:31-08:00	[thread overview]
Message-ID: <3bf49b0e-d6ec-4b00-9461-c0782bdc0c69@googlegroups.com> (raw)
In-Reply-To: <5a341bef-ace4-468c-b5b6-55d46868d802@googlegroups.com>

> 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 use GNAT GPL, so is it possible to create a GPRBuild project that generates Ada files from an AYacc source and then compile the Ada sources ? Do I need 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 time 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 open source).
HTH
_________________________
Gautier's Ada programming
http://gautiersblog.blogspot.com/search/label/Ada
NB: follow the above link for a valid e-mail address

  parent reply	other threads:[~2014-02-07 19:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-07  8:57 Tools Generating Ada vincent.diemunsch
2014-02-07  9:34 ` Jacob Sparre Andersen
2014-02-07  9:41 ` Simon Wright
2014-02-07 16:32   ` Pascal Obry
2014-02-08  8:33   ` vincent.diemunsch
2014-02-07 16:52 ` Vadim Godunko
2014-02-07 19:32 ` gautier_niouzes [this message]
2014-02-08  8:47 ` Stephen Leake
2014-02-11 17:48   ` Vincent DIEMUNSCH
2014-02-11 21:08     ` briot.emmanuel
2014-02-12 11:52       ` Vincent DIEMUNSCH
2014-02-12 13:38         ` Pascal Obry
2014-02-12 16:18         ` Robert A Duff
2014-02-13 15:31     ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox