Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ada and Exuberant CTags

582 views
Skip to first unread message

Yannick Duchêne (Hibou57)

unread,
Oct 11, 2011, 3:30:36 PM10/11/11
to
Hello people out there,

Someone know a version Exuberant CTags with support for Ada ?

--
“Syntactic sugar causes cancer of the semi-colons.” [Epigrams on
Programming — Alan J. — P. Yale University]
“Structured Programming supports the law of the excluded muddle.” [Idem]
Java: Write once, Never revisit

R. Tyler Croy

unread,
Oct 11, 2011, 4:36:47 PM10/11/11
to
On Tue, 11 Oct 2011 21:30:36 +0200, Yannick Duchêne (Hibou57) wrote:

> Hello people out there,
>
> Someone know a version Exuberant CTags with support for Ada ?


I forked ctags and added support directly from the matreska repo (IIRC), I
can't quite remember where it came from right now honestly: <https://
github.com/rtyler/ctags>


Cheers

--
- R. Tyler Croy
--------------------------------------
Code: http://github.com/rtyler

Yannick Duchêne (Hibou57)

unread,
Oct 11, 2011, 6:22:35 PM10/11/11
to
Le Tue, 11 Oct 2011 22:36:47 +0200, R. Tyler Croy <ty...@linux.com> a
écrit:

> I forked ctags and added support directly from the matreska repo (IIRC),
> I can't quite remember where it came from right now honestly:
> <https://github.com/rtyler/ctags>
A long time I haven't seen Effeil source in real life ;) Was the C files
generated by SmallEiffel ?

Well, I ran autoconf, then configure, but configure ended with a:
> config.status: error: cannot find input file: `config.h.in'
Make failed, obviously.

But don't mind, as this is really far from being life‑and‑death emergency.
Would just be convenient for use with Gedit (Ubuntu default editor), as I
don't use GPS.

Thanks for your contribution

R. Tyler Croy

unread,
Oct 11, 2011, 7:44:37 PM10/11/11
to
On Wed, 12 Oct 2011 00:22:35 +0200, Yannick Duchêne (Hibou57) wrote:

> Le Tue, 11 Oct 2011 22:36:47 +0200, R. Tyler Croy <ty...@linux.com> a
> écrit:
>> I forked ctags and added support directly from the matreska repo
>> (IIRC),
>> I can't quite remember where it came from right now honestly:
>> <https://github.com/rtyler/ctags>
> A long time I haven't seen Effeil source in real life ;) Was the C files
> generated by SmallEiffel ?
>
> Well, I ran autoconf, then configure, but configure ended with a:
>> config.status: error: cannot find input file: `config.h.in'
> Make failed, obviously.
>
> But don't mind, as this is really far from being life‑and‑death
> emergency.
> Would just be convenient for use with Gedit (Ubuntu default editor), as
> I don't use GPS.
>
> Thanks for your contribution


% autoheader && autoconf && ./configure && make && sudo make install


:)

Yannick Duchêne (Hibou57)

unread,
Oct 11, 2011, 8:26:35 PM10/11/11
to
Le Wed, 12 Oct 2011 01:44:37 +0200, R. Tyler Croy <ty...@linux.com> a
écrit:
> % autoheader && autoconf && ./configure && make && sudo make install
Wow, there is really an autoheader. Hopfully, no automake, but I was near
to go wrong typing ./autoconfigure.

It works :) Wanted to have a quick overview of the ada.c you added to this
fork, but it's a longer file I though, will have to get some time to read
it a bit seriously.

I will have to later fix the outliner plugins I use with Gedit, as it
displays everything as a raw list without branch. At least, symbols are
there.

Have a sweet night if its time for you

Yannick Duchêne (Hibou57)

unread,
Oct 11, 2011, 11:07:21 PM10/11/11
to
Le Wed, 12 Oct 2011 01:44:37 +0200, R. Tyler Croy <ty...@linux.com> a
écrit:
>>> <https://github.com/rtyler/ctags>
What specification or reference did you used for Ada tag kinds code ?

An example: you use 'f' for formal/generic formal parameters, while the
exuberant-ctags standard use it for function/method.

Finally, I feel I will fix ada.c from your fork, rather the gedit plugin
which seems nice. I don't want to introduce exceptional cases for Ada in
that file, and instead map Ada tags to standard exuberant-ctags tags
specification.

Will tell you if I did, but I will have to look deeper to see if some
standard for Ada tag kinds already exist. That's why I would like to know
more about the reference or standard you used (to know if you used one).

Yannick Duchêne (Hibou57)

unread,
Oct 11, 2011, 11:23:00 PM10/11/11
to
Le Wed, 12 Oct 2011 05:07:21 +0200, Yannick Duchêne (Hibou57)
<yannick...@yahoo.fr> a écrit:

> Le Wed, 12 Oct 2011 01:44:37 +0200, R. Tyler Croy <ty...@linux.com> a
> écrit:
>>>> <https://github.com/rtyler/ctags>
> What specification or reference did you used for Ada tag kinds code ?

As a quick overview. I understood you used something originally made for
VIM:
http://gnuada.svn.sourceforge.net/viewvc/gnuada/tags/ctags-ada-mode-4.3.11/ada.c?revision=977&view=markup
This use the exact same tag kinds as yours

But the reference says:
http://ctags.sourceforge.net/FORMAT
> Note that these are mostly for C and C++. Whentags programs are written
> for other languages,this list should be extended to include the used
> field names.

*should be extended* This is very important to underline. Here, the ctags
for Ada used by VIM happily overwrite every thing. They did not follow the
CTags reference.

Interestingly, I could find some one else, who tried to follow the CTags
standard, and cleanly mapped Ada semantic to these, without any dangerous
overwriting:
http://coding.derkeiler.com/Archive/Ada/comp.lang.ada/2004-08/0108.html
To come back to a previous example, he, used 'f' for function and
procedure.

That's a mess, there seems to be no respect for standard at all. Famous
people don't follow the standard, and the one who followed the standard,
is an unknown guy and has probably no influence.

Martin Krischik

unread,
Oct 12, 2011, 1:56:08 AM10/12/11
to
Hello,

On Oct 11, 9:30 pm, Yannick Duchêne (Hibou57)
<yannick_duch...@yahoo.fr> wrote:

> Someone know a version Exuberant CTags with support for Ada ?

Yes here:

http://gnuada.svn.sourceforge.net/viewvc/gnuada/trunk/tools/ctags/

Martin

R. Tyler Croy

unread,
Oct 12, 2011, 2:21:38 PM10/12/11
to
Ah yes! This is where I originally pulled ada.c from to incorporate into
my GitHub ctags repository :)

Jerry

unread,
Oct 13, 2011, 12:22:47 AM10/13/11
to
On Oct 11, 10:56 pm, Martin Krischik <krisc...@users.sourceforge.net>
wrote:

For the record, there is an error in the file ada.c at the above
address. The lines

* then add the line
* ada.$(OBJECT) \

should be

* then add the line
* ada.$(OBJEXT) \

BTW, shouldn't this be included in ctags proper?

Jerry

Martin Krischik

unread,
Oct 13, 2011, 1:21:11 PM10/13/11
to
Am 12.10.2011, 20:21 Uhr, schrieb R. Tyler Croy <ty...@linux.com>:

> Ah yes! This is where I originally pulled ada.c from to incorporate into
> my GitHub ctags repository :)

You could have asked for access to the original. No need for a fork.

Martin
--
Martin Krischik
mailto://kris...@users.sourceforge.net
https://sourceforge.net/users/krischik

0 new messages