Main Branches

Downloads  Installation  Overview  Data Libraries  Packages  Documentation  Contacts  FAQ  GAP 3 

Helpful GAP interface programs

GAP has excellent command line features, such as help. Moreover, GAP will remember your session "history" (all the commands typed in during your GAP session) and allow you to find all previously issued commands starting with a specific letter or sequence. For example, aBcD by typing

gap> aBcD
at the GAP prompt, followed by the up-arrow, you get the previous command (if any) starting with aBcD. To simply cycle through the previous commands, just repeatedly type the up-arrow key.

Other "interface" options exist and this page explains some of these.

  • For xemacs/emacs lovers, there is a special mode for GAP users (for vim users, see the section Editor Support in the GAP reference manual). Note that by running GAP within emacs/xemacs you will lose, for example, the tab-completion and the nice history features of GAP's built-in shell. However, as a small consolation, you can edit out any syntax mistakes in your session as you go. The page GAP in emacs or xemacs has information for GAP in linux and GAP in windows.

  • GAP does not allow more than one line of comments using the usual "Read" command. For debugging and for adding examples to help remember proper syntax, multi-line comments would be very useful. Thanks to a new command "ReadNC" written by Frank Lübeck, you now can include multi-line comments into your file. Frank Lübeck's ReadNC GAP program allows the reading into GAP of programs with multi-line comments.