The correct syntax for the RPC language (XDR with the addition of the program and version types) can be obtained by tracing through the syntax diagrams  following the flow indicated by the arrows. In each diagram, the words or symbols that are listed in boxes with rounded corners should be entered exactly as shown. Items in boxes with square corners that contain entries that are not italicized reference further syntax diagrams. Italicized entries reference "common" items. These items consist of
 While I would like to be able to note that these syntax diagrams follow defined standards, they do not exactly. However, they are close enough in format and style that most readers should find no difficulty interpreting them.
The rpcgen compiler converts all RPC definitions into standard C. Statements that have a % in the first column are passed through without interpretation.
The RPC language consists of a series of RPC definitions delineated by semicolons:
The RPC definition is divided into six categories or definitions.