comp.lang.ada
 help / color / mirror / Atom feed
* Un-crunching
@ 2003-03-25 23:50 Phaedrus
  2003-03-26  1:30 ` Un-crunching tmoran
  0 siblings, 1 reply; 15+ messages in thread
From: Phaedrus @ 2003-03-25 23:50 UTC (permalink / raw)


On a similar note to Martin's un-separating note, does anybody know how to
"un-crunch"
filenames?  I've got a LOT of files whose names have been crunched with
gnatkr down
to 8+3 format, and now Gnat isn't happy with the shortened names.  Is there
a utility to parse
the packages and give them a standard filename?  I had hoped that a
parameter with gnatkr
would have been able to undo it, but that doesn't seem to be the case.
Sure, I could write a utility,
but I'd rather not reinvent the wheel.  Or maybe I'm missing a Gnat
parameter that would make it
happier with the crunched names?  I'd really rather not have to rename all
of these files!

TIA,
Phaedrus





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

* Re: Un-crunching
  2003-03-25 23:50 Un-crunching Phaedrus
@ 2003-03-26  1:30 ` tmoran
  2003-03-26 17:02   ` Un-crunching Martin Krischik
  0 siblings, 1 reply; 15+ messages in thread
From: tmoran @ 2003-03-26  1:30 UTC (permalink / raw)


> does anybody know how to "un-crunch" filenames?
gnatchop



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

* Re: Un-crunching
  2003-03-26  1:30 ` Un-crunching tmoran
@ 2003-03-26 17:02   ` Martin Krischik
  2003-03-26 17:28     ` Un-crunching Stephen Leake
  2003-03-26 18:43     ` Un-crunching Martin Dowie
  0 siblings, 2 replies; 15+ messages in thread
From: Martin Krischik @ 2003-03-26 17:02 UTC (permalink / raw)


On Wed, 26 Mar 2003 01:30:50 +0000, tmora wrote:

>> does anybody know how to "un-crunch" filenames?

I once tried to "un-crunch", for documentation and easy reference, gnats
own libraries but I have never been successful.

> gnatchop

Read the manual, tried various commandline options and it didn't work. So
could you elaborate on your answer, please. I would realy be gratefull. 

With regards.

Martin

-- 
Martin Krischik
mailto://Martin@krischik.com
http://www.ada.krischik.com




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

* Re: Un-crunching
  2003-03-26 17:02   ` Un-crunching Martin Krischik
@ 2003-03-26 17:28     ` Stephen Leake
  2003-03-27 18:59       ` Un-crunching Martin Krischik
  2003-03-26 18:43     ` Un-crunching Martin Dowie
  1 sibling, 1 reply; 15+ messages in thread
From: Stephen Leake @ 2003-03-26 17:28 UTC (permalink / raw)


"Martin Krischik" <Martin.Krischik@T-Online.de> writes:

> On Wed, 26 Mar 2003 01:30:50 +0000, tmora wrote:
> 
> > gnatchop
> 
> Read the manual, tried various commandline options and it didn't work. So
> could you elaborate on your answer, please. I would realy be gratefull. 

you'll have to give more information than that.

1) Describe your files, giving the file name and the Ada name of the
compilation unit it contains

2) show the command you executed

3) show what the result was.

otherwise we are just shooting in the dark.

-- 
-- Stephe



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

* Re: Un-crunching
  2003-03-26 17:02   ` Un-crunching Martin Krischik
  2003-03-26 17:28     ` Un-crunching Stephen Leake
@ 2003-03-26 18:43     ` Martin Dowie
  2003-03-27 18:40       ` Un-crunching Martin Krischik
  1 sibling, 1 reply; 15+ messages in thread
From: Martin Dowie @ 2003-03-26 18:43 UTC (permalink / raw)


"Martin Krischik" <Martin.Krischik@T-Online.de> wrote in message
news:pan.2003.03.26.17.02.35.516086@T-Online.de...
> On Wed, 26 Mar 2003 01:30:50 +0000, tmora wrote:
>
> >> does anybody know how to "un-crunch" filenames?
>
> I once tried to "un-crunch", for documentation and easy reference, gnats
> own libraries but I have never been successful.

Yes, I've seen this too and never found a (quick) work around.

Works perfectly well as per documentation with any other files, in
my experience.





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

* Re: Un-crunching
  2003-03-26 18:43     ` Un-crunching Martin Dowie
@ 2003-03-27 18:40       ` Martin Krischik
  2003-03-28 21:01         ` Un-crunching Brian Gaffney
  0 siblings, 1 reply; 15+ messages in thread
From: Martin Krischik @ 2003-03-27 18:40 UTC (permalink / raw)


On Wed, 26 Mar 2003 18:43:22 +0000, Martin Dowie wrote:

> "Martin Krischik" <Martin.Krischik@T-Online.de> wrote in message
> news:pan.2003.03.26.17.02.35.516086@T-Online.de...
>> On Wed, 26 Mar 2003 01:30:50 +0000, tmora wrote:
>>
>> >> does anybody know how to "un-crunch" filenames?

>> I once tried to "un-crunch", for documentation and easy reference, gnats
>> own libraries but I have never been successful.
 
> Yes, I've seen this too and never found a (quick) work around.
 
> Works perfectly well as per documentation with any other files, in
> my experience.

This is rather sad. Finding the actual specification for a package
"grep"ing throu all the sources is that terefic.

With

Regards


-- 
Martin Krischik
mailto://Martin@krischik.com
http://ada.krischik.com




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

* Re: Un-crunching
  2003-03-26 17:28     ` Un-crunching Stephen Leake
@ 2003-03-27 18:59       ` Martin Krischik
  2003-03-31 17:20         ` Un-crunching Stephen Leake
  0 siblings, 1 reply; 15+ messages in thread
From: Martin Krischik @ 2003-03-27 18:59 UTC (permalink / raw)


On Wed, 26 Mar 2003 12:28:49 +0000, Stephen Leake wrote:

> "Martin Krischik" <Martin.Krischik@T-Online.de> writes:
> 
>> On Wed, 26 Mar 2003 01:30:50 +0000, tmora wrote:
>> 
>> > gnatchop
>> 
>> Read the manual, tried various commandline options and it didn't work. So
>> could you elaborate on your answer, please. I would realy be gratefull. 
> 
> you'll have to give more information than that.
> 
> 1) Describe your files, giving the file name and the Ada name of the
> compilation unit it contains

The Ada.* packages inside the a-*.ads files.
 
> 2) show the command you executed


md Temp
cd Temp
gnat chop -k128 ../*.ads

 
> 3) show what the result was.

a-except.ads in ../4jexcept.ads is duplicated in ../a-except.ads
a-tags.ads in ../4jtags.ads is duplicated in ../a-tags.ads
g-except.ads in ../3jexcept.ads is duplicated in ../g-except.ads
s-finimp.ads in ../5jfinimp.ads is duplicated in ../s-finimp.ads
s-parame.ads in ../5jparame.ads is duplicated in ../s-parame.ads
s-secsta.ads in ../5jsecsta.ads is duplicated in ../s-secsta.ads
s-stalib.ads in ../5jstalib.ads is duplicated in ../s-stalib.ads
use -w to overwrite files and keep last version
no source files written

> 2) show the command you executed

gnat chop -k128 -w ../*.ads
 
> 3) show what the result was.

splitting ../a-caldel.ads into:
   a-caldel.ads
splitting ../a-calend.ads into:
   a-calend.ads
splitting ../a-chahan.ads into:
   a-chahan.ads
splitting ../a-charac.ads into:
   a-charac.ads
splitting ../a-chlat1.ads into:
   a-chlat1.ads
splitting ../a-colire.ads into:
   a-colire.ads
splitting ../a-comlin.ads into:
   a-comlin.ads
splitting ../a-cwila1.ads into:
   a-cwila1.ads
splitting ../ada.ads into:
   ada.ads
splitting ../a-decima.ads into:
   a-decima.ads
splitting ../a-dynpri.ads into:
   a-dynpri.ads
splitting ../a-except.ads into:
   a-except.ads
splitting ../a-filico.ads into:
   a-filico.ads
splitting ../a-finali.ads into:
   a-finali.ads
splitting ../a-flteio.ads into:
   a-flteio.ads
splitting ../a-fwteio.ads into:
   a-fwteio.ads
splitting ../a-inteio.ads into:
 
> otherwise we are just shooting in the dark.

With Regards

Martin

-- 
Martin Krischik
mailto://Martin@krischik.com
http://ada.krischik.com




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

* Re: Un-crunching
@ 2003-03-28 14:31 David C. Hoos
  2003-03-28 15:08 ` Un-crunching Thomas Wolf
  2003-03-30 17:05 ` Un-crunching Martin Krischik
  0 siblings, 2 replies; 15+ messages in thread
From: David C. Hoos @ 2003-03-28 14:31 UTC (permalink / raw)
  To: comp.lang.ada mail to news gateway; +Cc: Martin.Krischik

"Reading between the lines," it seems what you want to do is to
"browse" source files from the standard Ada library.

GNAT provides two easy and effective ways to do this, viz.:

  1.  Use the emacs editor with ada-mode

  2.  Use gnathtml (a perl script) to generate navigable html
       pages showing the source code.

Both of these methods provide color syntax highlighting, and
navigation from a reference to an identifier to its declaration.

Emacs also provides a clickable list of references to an identifier.

I use emacs for developing, and provide html files for projects at
certain milestones in a public directory, so the files can be
browsed by others.

The perl script has a switch that specifies whether you want to
include the standard library in the generated html.







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

* Re: Un-crunching
  2003-03-28 14:31 Un-crunching David C. Hoos
@ 2003-03-28 15:08 ` Thomas Wolf
  2003-03-28 15:10   ` Un-crunching Thomas Wolf
  2003-03-28 17:15   ` Un-crunching Jeffrey Carter
  2003-03-30 17:05 ` Un-crunching Martin Krischik
  1 sibling, 2 replies; 15+ messages in thread
From: Thomas Wolf @ 2003-03-28 15:08 UTC (permalink / raw)


david.c.hoos.sr@ada95.com wrote:
> "Reading between the lines," it seems what you want to do is to
> "browse" source files from the standard Ada library.
> 
> GNAT provides two easy and effective ways to do this, viz.:
> 
>   1.  Use the emacs editor with ada-mode
> 
>   2.  Use gnathtml (a perl script) to generate navigable html
>        pages showing the source code.

Or  3.  Get AdaBrowse (an executable) and use that to generate
        navigable html. AdaBrowse is GPL'ed, executables pre-built
        for Win NT/2k/XP; for Linux, re-build from the sources.
        Available at the URL
        <http://home.tiscalinet.ch/t_wolf/tw/ada/adabrowse/>.

[...]

-- 
-----------------------------------------------------------------
Thomas Wolf                          e-mail: t_wolf@angelfire.com




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

* Re: Un-crunching
  2003-03-28 15:08 ` Un-crunching Thomas Wolf
@ 2003-03-28 15:10   ` Thomas Wolf
  2003-03-28 17:15   ` Un-crunching Jeffrey Carter
  1 sibling, 0 replies; 15+ messages in thread
From: Thomas Wolf @ 2003-03-28 15:10 UTC (permalink / raw)


t_wolf@angelfire.com wrote:
> david.c.hoos.sr@ada95.com wrote:
> > "Reading between the lines," it seems what you want to do is to
> > "browse" source files from the standard Ada library.
> > 
> > GNAT provides two easy and effective ways to do this, viz.:
> > 
> >   1.  Use the emacs editor with ada-mode
> > 
> >   2.  Use gnathtml (a perl script) to generate navigable html
> >        pages showing the source code.
> 
> Or  3.  Get AdaBrowse (an executable) and use that to generate
>         navigable html. AdaBrowse is GPL'ed, executables pre-built
>         for Win NT/2k/XP; for Linux, re-build from the sources.
>         Available at the URL
>         <http://home.tiscalinet.ch/t_wolf/tw/ada/adabrowse/>.

Oops, the correct URL is of course
<http://home.tiscalinet.ch/t_wolf/tw/ada95/adabrowse/>.

Sorry for the typo.

-- 
-----------------------------------------------------------------
Thomas Wolf                          e-mail: t_wolf@angelfire.com




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

* Re: Un-crunching
  2003-03-28 15:08 ` Un-crunching Thomas Wolf
  2003-03-28 15:10   ` Un-crunching Thomas Wolf
@ 2003-03-28 17:15   ` Jeffrey Carter
  1 sibling, 0 replies; 15+ messages in thread
From: Jeffrey Carter @ 2003-03-28 17:15 UTC (permalink / raw)


Thomas Wolf wrote:
> david.c.hoos.sr@ada95.com wrote:
> 
>>"Reading between the lines," it seems what you want to do is to
>>"browse" source files from the standard Ada library.
>>
>>GNAT provides two easy and effective ways to do this, viz.:
>>
>>  1.  Use the emacs editor with ada-mode
>>
>>  2.  Use gnathtml (a perl script) to generate navigable html
>>       pages showing the source code.
> 
> 
> Or  3.  Get AdaBrowse (an executable) and use that to generate
>         navigable html. AdaBrowse is GPL'ed, executables pre-built
>         for Win NT/2k/XP; for Linux, re-build from the sources.
>         Available at the URL
>         <http://home.tiscalinet.ch/t_wolf/tw/ada/adabrowse/>.
> 
> [...]
> 

You might consider Alibrowse:

http://sourceforge.net/projects/alibrowse

-- 
Jeff Carter
"We burst our pimples at you."
Monty Python & the Holy Grail




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

* Re: Un-crunching
  2003-03-27 18:40       ` Un-crunching Martin Krischik
@ 2003-03-28 21:01         ` Brian Gaffney
  2003-03-30  4:43           ` Un-crunching tmoran
  0 siblings, 1 reply; 15+ messages in thread
From: Brian Gaffney @ 2003-03-28 21:01 UTC (permalink / raw)


> >> I once tried to "un-crunch", for documentation and easy reference, gnats
> >> own libraries but I have never been successful.
>  
> > Yes, I've seen this too and never found a (quick) work around.
>  
> > Works perfectly well as per documentation with any other files, in
> > my experience.
> 
> This is rather sad. Finding the actual specification for a package
> "grep"ing throu all the sources is that terefic.
> 

From what I recall, GnatChop has always had a 'special exception' to
always krunch Ada.*, System.*, Gnat.*, etc.  This made some sense back
when I was using GNAT on DOS, since it meant GNAT library files would
always have the same names.  I don't know why it's still there (DOS
doesn't seem all that big a market for GNAT these days, and I don't
know if there are any other ports with the same filename limitation).

I think I recall Robert Dewar once explaining that this was part of
the "rules" GnatChop uses, but if it happened that was long long ago.

--Brian
          --He's the best physician that knows the --
          -- worthlessness of the most medicines.  --  Poor Richard



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

* Re: Un-crunching
  2003-03-28 21:01         ` Un-crunching Brian Gaffney
@ 2003-03-30  4:43           ` tmoran
  0 siblings, 0 replies; 15+ messages in thread
From: tmoran @ 2003-03-30  4:43 UTC (permalink / raw)


>From what I recall, GnatChop has always had a 'special exception' to
>always krunch Ada.*, System.*, Gnat.*, etc.
  Do a global replace of "Ada" by "Qdq", do gnatchop, global replace
in reverse?  But, as pointed out, you probably don't really want
unkrunching, but rather some sort of source browser tool.



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

* Re: Un-crunching
  2003-03-28 14:31 Un-crunching David C. Hoos
  2003-03-28 15:08 ` Un-crunching Thomas Wolf
@ 2003-03-30 17:05 ` Martin Krischik
  1 sibling, 0 replies; 15+ messages in thread
From: Martin Krischik @ 2003-03-30 17:05 UTC (permalink / raw)


On Fri, 28 Mar 2003 08:31:48 +0000, David C. Hoos wrote:

>   1.  Use the emacs editor with ada-mode

I have tried several but I can not get to grip with any of the classic
unix editors.

>   2.  Use gnathtml (a perl script) to generate navigable html
>        pages showing the source code.

While gnathtml does provide some nice output it still does not solve the
main problem: these cryptic, outdated, unreadable and plain horrible dos
style filenames.

Thats because the table of content is based on filenames and not on package
names.

Well, not your fault I guess and gnathtml is a good tip after all.

With Regards

Martin

-- 
Martin Krischik
mailto://Martin@krischik.com
http://www.ada.krischik.com




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

* Re: Un-crunching
  2003-03-27 18:59       ` Un-crunching Martin Krischik
@ 2003-03-31 17:20         ` Stephen Leake
  0 siblings, 0 replies; 15+ messages in thread
From: Stephen Leake @ 2003-03-31 17:20 UTC (permalink / raw)


"Martin Krischik" <Martin.Krischik@T-Online.de> writes:

> On Wed, 26 Mar 2003 12:28:49 +0000, Stephen Leake wrote:
> 
> > 1) Describe your files, giving the file name and the Ada name of the
> > compilation unit it contains
> 
> The Ada.* packages inside the a-*.ads files.

Ah! As others have said, gnatchop has a special exception for Ada.*,
System.*, and (maybe?) Gnat.* packages.

To fix this, get the source for gnatchop, delete the special
exception, and recompile.

One of these days, I may do that myself. For now, Emacs Ada-mode knows
how to browse to those files when needed, so I'm happy.

-- 
-- Stephe



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

end of thread, other threads:[~2003-03-31 17:20 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-25 23:50 Un-crunching Phaedrus
2003-03-26  1:30 ` Un-crunching tmoran
2003-03-26 17:02   ` Un-crunching Martin Krischik
2003-03-26 17:28     ` Un-crunching Stephen Leake
2003-03-27 18:59       ` Un-crunching Martin Krischik
2003-03-31 17:20         ` Un-crunching Stephen Leake
2003-03-26 18:43     ` Un-crunching Martin Dowie
2003-03-27 18:40       ` Un-crunching Martin Krischik
2003-03-28 21:01         ` Un-crunching Brian Gaffney
2003-03-30  4:43           ` Un-crunching tmoran
  -- strict thread matches above, loose matches on Subject: below --
2003-03-28 14:31 Un-crunching David C. Hoos
2003-03-28 15:08 ` Un-crunching Thomas Wolf
2003-03-28 15:10   ` Un-crunching Thomas Wolf
2003-03-28 17:15   ` Un-crunching Jeffrey Carter
2003-03-30 17:05 ` Un-crunching Martin Krischik

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