comp.lang.ada
 help / color / mirror / Atom feed
* Ada help file indexed by keyword
@ 2010-04-21  8:03 Manuel Collado
  2010-04-21  8:57 ` Ludovic Brenta
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Manuel Collado @ 2010-04-21  8:03 UTC (permalink / raw)


I'm looking for an Ada95/2005 help or reference document indexed by 
keyword (reserved word or standard library identifier).

The purpose is to integrate it into an academic IDE, so it should be 
possible to put the cursor in the editing window over a meaningful word, 
and invoke help about it.

So far I've found the ARM in several formats, but none of them can be 
accessed as described. There is also the Ada wikibook, that also lacks 
the required feature. Even GNAT/GPS seems to lack it.

Any common hiperlinked format is acceptable: WinHelp, HTML (local or 
www), PDF, TexInfo, etc..

Does anybody knows if there exist such help system for Ada?

Thanks in advance.
-- 
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21  8:03 Ada help file indexed by keyword Manuel Collado
@ 2010-04-21  8:57 ` Ludovic Brenta
  2010-04-21 10:34   ` Manuel Collado
  2010-04-21 11:43 ` Georg Bauhaus
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 14+ messages in thread
From: Ludovic Brenta @ 2010-04-21  8:57 UTC (permalink / raw)


Manuel Collado wrote on comp.lang.ada:
> I'm looking for an Ada95/2005 help or reference document indexed by
> keyword (reserved word or standard library identifier).
>
> The purpose is to integrate it into an academic IDE, so it should be
> possible to put the cursor in the editing window over a meaningful word,
> and invoke help about it.
>
> So far I've found the ARM in several formats, but none of them can be
> accessed as described. There is also the Ada wikibook, that also lacks
> the required feature. Even GNAT/GPS seems to lack it.
>
> Any common hiperlinked format is acceptable: WinHelp, HTML (local or
> www), PDF, TexInfo, etc..
>
> Does anybody knows if there exist such help system for Ada?
>
> Thanks in advance.

Is http://www.stephe-leake.org/ada/arm.html what you are looking for?

HTH

--
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21  8:57 ` Ludovic Brenta
@ 2010-04-21 10:34   ` Manuel Collado
  2010-04-21 11:04     ` Ludovic Brenta
  0 siblings, 1 reply; 14+ messages in thread
From: Manuel Collado @ 2010-04-21 10:34 UTC (permalink / raw)


Ludovic Brenta escribi�:
> Manuel Collado wrote on comp.lang.ada:
>> I'm looking for an Ada95/2005 help or reference document indexed by
>> keyword (reserved word or standard library identifier).
>>
>> The purpose is to integrate it into an academic IDE, so it should be
>> possible to put the cursor in the editing window over a meaningful word,
>> and invoke help about it.
>>
>> So far I've found the ARM in several formats, but none of them can be
>> accessed as described. There is also the Ada wikibook, that also lacks
>> the required feature. Even GNAT/GPS seems to lack it.
>>
>> Any common hiperlinked format is acceptable: WinHelp, HTML (local or
>> www), PDF, TexInfo, etc..
>>
>> Does anybody knows if there exist such help system for Ada?
>>
>> Thanks in advance.
> 
> Is http://www.stephe-leake.org/ada/arm.html what you are looking for?

Thanks for your pointer, but I'm afraid not.

The requirement is something that can be opened from the command line by 
a command parameterized by the relevant keyword. Can you provide such a 
command?

For instance, to get help about the keyword "for", something like:

   info -f arm2005.info xxx yyy for

Thanks, anyway.
-- 
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21 10:34   ` Manuel Collado
@ 2010-04-21 11:04     ` Ludovic Brenta
  2010-04-21 12:27       ` Manuel Collado
  0 siblings, 1 reply; 14+ messages in thread
From: Ludovic Brenta @ 2010-04-21 11:04 UTC (permalink / raw)


Manuel Collado wrote on comp.lang.ada:
> Ludovic Brenta escribió:
>> Manuel Collado wrote on comp.lang.ada:
>>> I'm looking for an Ada95/2005 help or reference document indexed by
>>> keyword (reserved word or standard library identifier).
>>>
>>> The purpose is to integrate it into an academic IDE, so it should be
>>> possible to put the cursor in the editing window over a meaningful word,
>>> and invoke help about it.
>>>
>>> So far I've found the ARM in several formats, but none of them can be
>>> accessed as described. There is also the Ada wikibook, that also lacks
>>> the required feature. Even GNAT/GPS seems to lack it.
>>>
>>> Any common hiperlinked format is acceptable: WinHelp, HTML (local or
>>> www), PDF, TexInfo, etc..
>>>
>>> Does anybody knows if there exist such help system for Ada?

>> Is http://www.stephe-leake.org/ada/arm.html what you are looking for?
>
> Thanks for your pointer, but I'm afraid not.
>
> The requirement is something that can be opened from the command line by
> a command parameterized by the relevant keyword. Can you provide such a
> command?
>
> For instance, to get help about the keyword "for", something like:
>
>    info -f arm2005.info xxx yyy for

info -f arm2005.info --index-search for

This option has been present since at least GNU Info 4.6.

--
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21  8:03 Ada help file indexed by keyword Manuel Collado
  2010-04-21  8:57 ` Ludovic Brenta
@ 2010-04-21 11:43 ` Georg Bauhaus
  2010-04-21 12:37   ` Manuel Collado
  2010-04-21 12:19 ` Gautier write-only
  2010-04-21 12:19 ` Kulin Remailer
  3 siblings, 1 reply; 14+ messages in thread
From: Georg Bauhaus @ 2010-04-21 11:43 UTC (permalink / raw)


Manuel Collado schrieb:
> I'm looking for an Ada95/2005 help or reference document indexed by
> keyword (reserved word or standard library identifier).
> 
> The purpose is to integrate it into an academic IDE, so it should be
> possible to put the cursor in the editing window over a meaningful word,
> and invoke help about it.
> 
> So far I've found the ARM in several formats, but none of them can be
> accessed as described. There is also the Ada wikibook, that also lacks
> the required feature. Even GNAT/GPS seems to lack it.

The wikibook has this feature. The book authors have made templates
that, if used, will make, e.g., a reserved word into a link to a pages
with info about the word.  There are some programs and editor macro
files (Vim and Emacs) to help with automatic addition of such.  These
are mentioned on the wikibook authors' pages (in wikibook.org).

One of these programs is the following. I should prepare an update,
though, for some new wikibook template syntax.
http://home.arcor.de/bauhaus/Tools/ASnip/




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21  8:03 Ada help file indexed by keyword Manuel Collado
  2010-04-21  8:57 ` Ludovic Brenta
  2010-04-21 11:43 ` Georg Bauhaus
@ 2010-04-21 12:19 ` Gautier write-only
  2010-04-21 15:33   ` Manuel Collado
  2010-04-21 12:19 ` Kulin Remailer
  3 siblings, 1 reply; 14+ messages in thread
From: Gautier write-only @ 2010-04-21 12:19 UTC (permalink / raw)


On 21 Apr., 10:03, Manuel Collado <m.coll...@invalid.domain> wrote:
> I'm looking for an Ada95/2005 help or reference document indexed by
> keyword (reserved word or standard library identifier).
>
> The purpose is to integrate it into an academic IDE, so it should be
> possible to put the cursor in the editing window over a meaningful word,
> and invoke help about it.

AdaGIDE has this feature built-in exactly as you describe, for a while
(I've implemented it :-) ).
Right-click on an identifier or a keyword, and you get "Search RM for
[it]".
It invokes: http://www.adaic.com/search-rm05.cgi?SearchA=[what you
want]

Look there for binary or sources here: http://sourceforge.net/projects/adagide/

HTH
______________________________________________________________
Gautier's Ada programming -- http://gautiersblog.blogspot.com/
NB: For a direct answer, e-mail address on the following web site:
http://www.fechtenafz.ethz.ch/wm_email.htm



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21  8:03 Ada help file indexed by keyword Manuel Collado
                   ` (2 preceding siblings ...)
  2010-04-21 12:19 ` Gautier write-only
@ 2010-04-21 12:19 ` Kulin Remailer
  3 siblings, 0 replies; 14+ messages in thread
From: Kulin Remailer @ 2010-04-21 12:19 UTC (permalink / raw)


Manuel Collado <m.collado@invalid.domain> wrote:

> I'm looking for an Ada95/2005 help or reference document indexed by 
> keyword (reserved word or standard library identifier).

> Any common hiperlinked format is acceptable: WinHelp, HTML (local or 
> www), PDF, TexInfo, etc..

It seems to me the RMs linked from AdaIC are available in HTML format, with
hyperlink indices.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21 11:04     ` Ludovic Brenta
@ 2010-04-21 12:27       ` Manuel Collado
  2010-04-21 12:33         ` Georg Bauhaus
  2010-04-21 22:27         ` Randy Brukardt
  0 siblings, 2 replies; 14+ messages in thread
From: Manuel Collado @ 2010-04-21 12:27 UTC (permalink / raw)


Ludovic Brenta escribi�:
> Manuel Collado wrote on comp.lang.ada:
>> Ludovic Brenta escribi�:
> ...
>>> Is http://www.stephe-leake.org/ada/arm.html what you are looking for?
>> Thanks for your pointer, but I'm afraid not.
>>
>> The requirement is something that can be opened from the command line by
>> a command parameterized by the relevant keyword. Can you provide such a
>> command?
>>
>> For instance, to get help about the keyword "for", something like:
>>
>>    info -f arm2005.info xxx yyy for
> 
> info -f arm2005.info --index-search for

It gives: "no index entries found for `for'"

> 
> This option has been present since at least GNU Info 4.6.

What I've found so far is that the ARM doesn't include the language 
keywords as index entries :-(

This makes sense, as a specific keyword can appears in very different 
language constructs, with disparate meanings. My expectation is to have 
a command like:

     adahelp for

that pops-up a choice menu like:

     - for loops
     - representation clauses
     - ...

Hope this clarifies the idea.

-- 
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21 12:27       ` Manuel Collado
@ 2010-04-21 12:33         ` Georg Bauhaus
  2010-04-21 14:34           ` Manuel Collado
  2010-04-21 22:27         ` Randy Brukardt
  1 sibling, 1 reply; 14+ messages in thread
From: Georg Bauhaus @ 2010-04-21 12:33 UTC (permalink / raw)


On 21.04.10 14:27, Manuel Collado wrote:

> This makes sense, as a specific keyword can appears in very different
> language constructs, with disparate meanings. My expectation is to have
> a command like:
> 
>     adahelp for
> 
> that pops-up a choice menu like:
> 
>     - for loops
>     - representation clauses
>     - ...
> 
> Hope this clarifies the idea.
> 

$ open http://en.wikibooks.org/wiki/Ada_Programming/Keywords/for




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21 11:43 ` Georg Bauhaus
@ 2010-04-21 12:37   ` Manuel Collado
  2010-04-21 14:48     ` Georg Bauhaus
  0 siblings, 1 reply; 14+ messages in thread
From: Manuel Collado @ 2010-04-21 12:37 UTC (permalink / raw)


Georg Bauhaus escribi�:
> Manuel Collado schrieb:
>> I'm looking for an Ada95/2005 help or reference document indexed by
>> keyword (reserved word or standard library identifier).
>>
>> The purpose is to integrate it into an academic IDE, so it should be
>> possible to put the cursor in the editing window over a meaningful word,
>> and invoke help about it.
>>
>> So far I've found the ARM in several formats, but none of them can be
>> accessed as described. There is also the Ada wikibook, that also lacks
>> the required feature. Even GNAT/GPS seems to lack it.
> 
> The wikibook has this feature. The book authors have made templates
> that, if used, will make, e.g., a reserved word into a link to a pages
> with info about the word.  There are some programs and editor macro
> files (Vim and Emacs) to help with automatic addition of such.  These
> are mentioned on the wikibook authors' pages (in wikibook.org).

Do you suggest converting every instance of common words like 'with', 
'use', 'for', 'while', ... into a link to index entries? :-)

> 
> One of these programs is the following. I should prepare an update,
> though, for some new wikibook template syntax.
> http://home.arcor.de/bauhaus/Tools/ASnip/

Well, I'm not looking for a tool to create the help system, but for a 
ready-to-use one. In fact my course is not about Ada programming, but 
about Programming Environments. My students will be asked to customize 
an existing IDE by adding additional features not already available, via 
invocation of external tools. Like contextual help for Ada keywords or 
standard library elements while editing Ada sources.

Hope this clarifies the idea.

-- 
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21 12:33         ` Georg Bauhaus
@ 2010-04-21 14:34           ` Manuel Collado
  0 siblings, 0 replies; 14+ messages in thread
From: Manuel Collado @ 2010-04-21 14:34 UTC (permalink / raw)


Georg Bauhaus escribi�:
> On 21.04.10 14:27, Manuel Collado wrote:
> 
>> This makes sense, as a specific keyword can appears in very different
>> language constructs, with disparate meanings. My expectation is to have
>> a command like:
>>
>>     adahelp for
>>
>> that pops-up a choice menu like:
>>
>>     - for loops
>>     - representation clauses
>>     - ...
>>
>> Hope this clarifies the idea.
>>
> 
> $ open http://en.wikibooks.org/wiki/Ada_Programming/Keywords/for
> 

Oops! I obviously missed these wiki entries.

Thanks.
-- 
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21 12:37   ` Manuel Collado
@ 2010-04-21 14:48     ` Georg Bauhaus
  0 siblings, 0 replies; 14+ messages in thread
From: Georg Bauhaus @ 2010-04-21 14:48 UTC (permalink / raw)


On 21.04.10 14:37, Manuel Collado wrote:

> Do you suggest converting every instance of common words like 'with',
> 'use', 'for', 'while', ... into a link to index entries? :-)

Sort of, although I'd put more power into the hands of programmers looking
for information.  For each word, there will have to be some form of
KWIC, where the 'C' is the part to be well defined. Since you outlined
one possibility, I imagine making a ready-to-use help system "for keywords"
will profit from observing the Google generation's approach to finding
information.

(Step 1) In general, if you want to learn about "for", type "for"
into the search box.  The search box will then suggest what you
are looking for, and take you there.

(Step 2) The universe of text to be indexed by the help system
is restricted to text about the syntactic features of Ada.

(Step 3) The one thing that an IDE would need is a
specialized search box by another name (and slightly different
display) supported by the language parser.  Everything else is
readily available, for example via Netscape Lisp
(a.k.a. Javascript). The latter will give you context help for
free. Therefore,

(a) have an Ada parser look for key words,

(b) on some event (mouse etc.) connected with the keyword, have the
system display a ready made sub-document on top of the other
text. (Code doing this is freely available.)

So yes, a link is enough.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21 12:19 ` Gautier write-only
@ 2010-04-21 15:33   ` Manuel Collado
  0 siblings, 0 replies; 14+ messages in thread
From: Manuel Collado @ 2010-04-21 15:33 UTC (permalink / raw)


Gautier write-only escribi�:
> On 21 Apr., 10:03, Manuel Collado <m.coll...@invalid.domain> wrote:
>> I'm looking for an Ada95/2005 help or reference document indexed by
>> keyword (reserved word or standard library identifier).
>>
>> The purpose is to integrate it into an academic IDE, so it should be
>> possible to put the cursor in the editing window over a meaningful word,
>> and invoke help about it.
> 
> AdaGIDE has this feature built-in exactly as you describe, for a while
> (I've implemented it :-) ).
> Right-click on an identifier or a keyword, and you get "Search RM for
> [it]".
> It invokes: http://www.adaic.com/search-rm05.cgi?SearchA=[what you
> want]
> 
> Look there for binary or sources here: http://sourceforge.net/projects/adagide/

I must confess that I forget this feature. It is really what I want.

Regrettably, when looking for common words (if, for, ...) the answer is 
too noisy to be illustrative.

Thanks for your remainder.
-- 
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Ada help file indexed by keyword
  2010-04-21 12:27       ` Manuel Collado
  2010-04-21 12:33         ` Georg Bauhaus
@ 2010-04-21 22:27         ` Randy Brukardt
  1 sibling, 0 replies; 14+ messages in thread
From: Randy Brukardt @ 2010-04-21 22:27 UTC (permalink / raw)


"Manuel Collado" <m.collado@domain.invalid> wrote in message 
news:hqmr00$a2c$1@heraldo.rediris.es...
...
> What I've found so far is that the ARM doesn't include the language 
> keywords as index entries :-(

This is true, it never seemed that useful. All of the other things (syntax 
non-terminals, package names, subprogram names, etc.) are indexed in at 
least one of many indexes (including the syntax cross reference in the 
latter half of Annex P, the various indexing in Annex Q, and the main 
index), but not the keywords. I'll put that on an enhancement list for the 
future, since it seems like something that is missing from the Standard.

It would be easy enough for someone to write a tool to extract that 
information from the Annex P syntax cross-reference (and then link to the 
appropriate non-terminals) -- I'll leave that as an exercise for the reader. 
(Also how to get from your IDE to a link in a browser window.)

                             Randy.






^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-04-21 22:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-21  8:03 Ada help file indexed by keyword Manuel Collado
2010-04-21  8:57 ` Ludovic Brenta
2010-04-21 10:34   ` Manuel Collado
2010-04-21 11:04     ` Ludovic Brenta
2010-04-21 12:27       ` Manuel Collado
2010-04-21 12:33         ` Georg Bauhaus
2010-04-21 14:34           ` Manuel Collado
2010-04-21 22:27         ` Randy Brukardt
2010-04-21 11:43 ` Georg Bauhaus
2010-04-21 12:37   ` Manuel Collado
2010-04-21 14:48     ` Georg Bauhaus
2010-04-21 12:19 ` Gautier write-only
2010-04-21 15:33   ` Manuel Collado
2010-04-21 12:19 ` Kulin Remailer

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