asis

How do I compile ASIS for GNAT on 7.4?

假装没事ソ 提交于 2019-12-24 20:23:33
问题 I've downloaded the code from the repository here, and have run the make command after reading the README file (which is quite long, so I probably missed some things in it). I'm getting a build error, the source of which is not altogether clear. The make process terminates in the following: compilation of asis-data_decomposition-set_get.adb failed compilation of asis-text.adb failed compilation of a4g-contt-dp.adb failed gprbuild: *** compilation phase failed See this pastebin for the full

How can I find the `'First` and `'Last` expressions for a string field in a record using ASIS

瘦欲@ 提交于 2019-12-23 18:09:43
问题 I'm using ASIS to analyse a big Ada project. One of the things I need to do is to find the 'First and 'Last expressions for a string field in a record variable. My problem occurs when I have a Discrete_Range , which is not A_Discrete_Simple_Expression_Range (for which one can use the functions Lower_Bound and Upper_Bound directly), but instead A_Discrete_Range_Attribute_Reference . The source example which I'm analysing basically looks like this: with Ada.Text_IO; procedure Minimal_Example is