The sat-nms device driver language has been designed to be very easy to understand. The syntax resembles the BASIC programming language in some aspects, however, the language is highly specialized for it's purpose. Here some basic definitions which help you to read or write device driver files:
- The device driver language is case sensitive for all identifiers and keywords.
- Whitespace (space characters, tabs, line breaks) separates words.
- Line breaks have no special termination function.
- All keywords (except the RPN commands) are in upper case letters.
- Comments in C/C++ style are recognized (both,
/* ... */ and // ... comments).
- Identifiers (names for variables and tables) may consist of letters, digits and dots. They must start with a letter.
Beside the rules listed above, the device drivers provided by SatService GmbH follow some sort of coding/formatting convention:
- Each file starts with a comment block containing a short description and a change history.
- Identifiers always start with a lowercase letter. If a name consists of more than one word, the first letter of each following word is in upper case. Dots are used to group parameter functionally. Example:
mod.symbolRate .
- Statements are indented four columns for each level.