Definitions in toolkits are turned into menus down the right hand side of the main window. Toolkits are loaded from files at startup or can be made in the program window.
Each toolkit is displayed as a top-level menu with a menu item for each definition in that toolkit. Toolkit or a definition names which start with an underscore character are hidden and not displayed. The toolkits are always displayed in alphabetical order, but you can order the items within a toolkit in any way you like.
Zero-argument classes within toolkits are displayed as pull-right menus. You can nest classes to any depth. If a member of a zero argument class is an instance of the class Separator, it is drawn as a menu separator. This can be useful to give visual grouping to a menu.
Finally, nip uses the first line of the comment before a definition as help text for that function, so it's a good idea to put a simple one-line description of the function at the start of a comment.
For example, if the following text is placed in a file called Fred.def on nip's start path, you'll get a top-level menu called Fred with a pull-right and a separator. See Figure 6.1.
Banana a = a * 3; Subfred = class { // add two things Jim a b = a + b; Apple e = e * 12; sep1 = Separator; Harry z = 12 + z; }