Re: Cross reference

new topic     » goto parent     » topic index » view thread      » older message » newer message

Rob wrote:

> Juergen Luethje wrote:
>> I don't know any cross-reference program for Euphoria. Sometimes it
>> would be useful for me, to have an overview by which routines another
>> routine is called, a list of all included files, a list of all global
>> variables, and maybe more. Is there such a program in the archieves?
>> I didn't find one.
>
> Look for Jeff Fielding's Pre-processor and
> "List Routines" by D.B. James. There might be another
> similar one somewhere.

Thanks. As far as I can see, both programs just create a plain list of
routine names. The lists do not show dependences of a routine on the
other ones, or any other cross-reference information.

I've started to write a little cross-reference program myself. ATM, if
I use it to parse e.g. "search.ex", the output is:

   type boolean()
      -- called by <main>, final_stats(), scan(), look_at()

   function alphabetic()
      -- called by final_stats(), <main>

   function fast_lower()
      -- called by scan(), <main>

   ...

That's what I mean.


>> Rob, I think the interpreter must have all this information internally
>> anyway, right? How about a new option, say "with xref", that would tell
>> the interpreter to write all cross-reference information into a text file?
>> Just an idea.
>
> I'll probably add something like that to the new front-end.
> It's a bit easier to code those things in Euphoria.
> Also the new front-end won't be bound into programs, so its size
> is not as important.

That sounds very nice. When I first read about your "big plan", I
thought: "Hm, does that mean anything to me as the Euphoria programmer?".
Now I see that the new structure of Euphoria provides the basis for a
bunch of improvements. Great!

Regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  |    |\      _,,,---,,_
 \ /  against HTML in       |    /,`.-'`'    -.  ;-;;,_
  X   e-mail and news,      |   |,4-  ) )-,_..;\ (  `'-'
 / \  and unneeded MIME     |  '---''(_/--'  `-'\_)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu