home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / emacs / 2683 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.9 KB

  1. Xref: sparky comp.emacs:2683 comp.lang.functional:942
  2. Path: sparky!uunet!darwin.sura.net!Sirius.dfn.de!zrz.tu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!uknet!glasgow!kh
  3. From: kh@dcs.glasgow.ac.uk (Kevin Hammond)
  4. Newsgroups: comp.emacs,comp.lang.functional
  5. Subject: Re: Emacs TAGS  for haskell / gofer
  6. Message-ID: <1992Jul23.095845.14355@dcs.glasgow.ac.uk>
  7. Date: 23 Jul 92 09:58:45 GMT
  8. References: <1834@miranda>
  9. Distribution: eunet
  10. Organization: Computing Sci, Glasgow Univ, Scotland
  11. Lines: 34
  12.  
  13. In article <1834@miranda> eglen@uk.co.gec-mrc (Stephen Eglen) writes:
  14. >    I am writing some Haskell code within the emacs editor.  Does anyone
  15. >know of a program that will create a TAGS file, given some haskell files?
  16.  
  17. Yes, the parser for the new Glasgow compiler will do this.  Use the -E option.
  18. The Glasgow Haskell compiler is available from ftp.dcs.glasgow.ac.uk [130.209.240.50]
  19. in pub/haskell/glasgow/ghc-0.08.tar.Z (remember to use binary mode for transfer).
  20. The parser can be run independently of the compiler.  If there's sufficient
  21. interest, we could make this available separately.  We use it to navigate our
  22. Haskell compiler (many thousands of lines), so you should find it fairly reliable.
  23. It handles data, type, class, instance and where declarations, as well as top-level
  24. definitions.  It understands multiple clauses for the same function.
  25.  
  26. Since the Gofer syntax is similar to Haskell, it will probably handle
  27. most Gofer scripts, too, but that's not something I've bothered to
  28. try.
  29.  
  30. There's also a sed script for tagging (offhand, I've forgotten the
  31. author, sorry) available from the Manchester archive.  It may be in our
  32. release too, but it's not easy for me to check...
  33.  
  34. >Alternatively, does anyone know what the format of the TAGS file is so
  35. >that I can try to generate one?
  36.  
  37. It's fairly simple, but to do a really good job you need to write a
  38. Haskell parser, anyway!
  39.  
  40. Kevin
  41.  
  42.  
  43.  
  44. -- 
  45. This Signature Intentionally Left Blank.    E-mail: kh@dcs.glasgow.ac.uk
  46.                                ^^^
  47.