Overview | Compiling a GRIP Program | Linking GRIP Object Files | Running a GRIP Program | Debugging a GRIP Program


Creating a GRIP Program

The first step in the development of a GRIP program or subprogram is to create the source file. The source file consists of an assortment of statements, labels, and comments arranged in a logical manner to perform various tasks.

NOTE:  When creating a file using a GRIP program, spaces are not allowed in the file name or directory path name. If spaces are found, the file will not be created. Since no warning will be given if the file is not created, it is important to be certain that the GRIP program does not attempt to create a file that contains any spaces in the file name or the path name.

Statements

The GRIP language consists of four types of statements: statements, declarations, functions, and symbols. Some statements require multiple parameters. This allows one statement to create an object or perform an operation in several different ways.

Creating a Source File

You can create a source file using the NX text editor, the system editor, or any other means of creating an ASCII text file.

Using the NX Text Editor

To create and edit your GRIP source file, you can use the Edit command in GRADE. This allows you to edit a file with the currently specified operating system editor (for example, vi). If the file does not reside in your current directory, enter the full path and filename.

You can also enter a single line edit command by specifying: e <filespec>, where "filespec" can be either the full pathname or just the filename if the file is in your current directory. You don't need to include the ".grs" extension. The Edit command automatically appends a ".grs" extension to the filename.

Customizing the Editor

You can customize the editor to default to the editor of your choice by setting the environment variable UGII$EDITOR/UGII_EDITOR to the executable name of the editor.