[comp.lang.ada] Ada mode for GNU emacs

sdl@MITRE-BEDFORD.ARPA (Litvintchouk) (06/13/88)

I tried to post this message last week but our MILNET connection was
down then.  So I'm reposting it again just to be sure it gets thru....

> Does anyone have or know of an ada-mode, similar to c-mode, to assist
> with writing ada programs in GNU emacs?  I am looking for something which
> can parse Ada; we may add features supporting static semantic checking.

There are several GNU Emacs "Ada modes" floating around.  However, the
only one I know of that can actually parse Ada source code is "Leif,"
described in the following posting to the info-gnu-emacs mailing list
(appended after my signature).

Steven Litvintchouk
MITRE Corporation
Bedford, MA  01730
(617)271-7753


>From liberte Tue May 24 00:51:43 1988
To: info-gnu-emacs@prep.ai.mit.edu
Subject: Announcing: Leif

Our incremental parser with GNU Emacs front end, called Leif, is now available.

Leif allows you to edit your program with normal Emacs commands and then
text changes are automatically sent to the incremental parser.  With
additional commands you can ask for the position of syntax errors,
select "phrases" of your program, display the syntax structure, and
determine legal tokens.

leif-mode is a minor mode within Emacs.  Thus you can use Leif on top
of a major mode such as c-mode.  vip-mode, a "global" mode, may also
be used with leif-mode if you prefer vi commands.

Leif uses a bison grammar and a lex specification (someday flex) to
specify a language.  Leif is table driven so that no language
dependent code exists in the Emacs lisp code or incremental parser.
Language descriptions are included for Pascal, Ada and a large subset
of C.  A single Emacs session may edit in several languages in several
different buffers.

The changes to the distributed GNU Emacs 18.50 are small.  Two buffer
local variables, before-change-hook and after-change-hook, are added.
Any changes to the buffer's text cause a call to the
before-change-hook function before the change is made and the
after-change-hook function after the change is made.  Also, to make
temporary text highlighting more convenient, a function was added
to force screen update even with pending input.

Leif may be obtained via anonymous ftp from a.cs.uiuc.edu in the
subdirectory pub/Leif, or via uucp in the subdirectory Leif.  The file
README.DIST contains information to help decide which files to
retrieve.  If you already have GNU Emacs 18.50 and only want the lisp
code and the diffs for Emacs, the compressed tar file
diff-18.50+leif.Z is one of those files.  Troff documentation is
available in the file leif-doc.tar.Z.

If you are unable to access the files via ftp or uucp, please contact us.
Please send Leif related queries to ihnp4!uiucdcs!leif or leif@a.cs.uiuc.edu

William Smith,	Dan LaLiberte,	Roy Campbell

madmats@elcgl.epfl.ch (03/09/91)

Hello,

could anyone tell me where I can get the Ada mode for the
GNU emacs editor ?

thanks

Mats Weber
Swiss Federal Institute of Technology
EPFL DI LGL
1015 Lausanne
Switzerland

E-mail : madmats@elcgl.epfl.ch
phone  : +41 21 693 52 92
fax    : +41 21 693 39 09

pukite@vz.acs.umn.edu (J. PUKITE) (03/09/91)

In article <1991Mar8.202028.1@elcgl.epfl.ch>, madmats@elcgl.epfl.ch writes...
>Hello,
> 
>could anyone tell me where I can get the Ada mode for the
>GNU emacs editor ?
>
GNU EMACS Ada mode files are available in Simtel20 Ada Software Repository
FTP access: WSMR-SIMTEL20.ARMY.MIL
These files are located in directory PD2:<GNU-ADA-MODE>.

The Unix tar.z version is in directory PD2:<UNIX-C.GNU> 

Also see article 2971 in this news group for possible alternates.

J. Pukite/DAINA
pukite@vz.acs.umn.edu

karl@grebyn.com (Karl A. Nyberg) (03/10/91)

In article <3584@ux.acs.umn.edu> folks write:
>In article <1991Mar8.202028.1@elcgl.epfl.ch>, madmats@elcgl.epfl.ch writes...
>>could anyone tell me where I can get the Ada mode for the
>>GNU emacs editor ?
>>
>GNU EMACS Ada mode files are available in Simtel20 Ada Software Repository
>FTP access: WSMR-SIMTEL20.ARMY.MIL
>These files are located in directory PD2:<GNU-ADA-MODE>.

I don't know if the files on SIMTEL are current.  I have the current files
(I sort of "maintain" the release, although there has only been one update
in the past two-three years, actually in the last couple months, and I
haven't even gotten that one in...) and will forward those to be put in the
repository.

For the nonce, send mail to gnu-emacs-ada-request@grebyn.com.

-- Karl --