next up previous contents
Next: 6.1.1 Parameters for class Up: 6. Member classes and Previous: 6. Member classes and   Contents


6.1 Tool parameters

In many cases the name of the member that caused a rule to be invoked is the only input to that rule. However, rules can be written in such a way that they take additional parameters. Those parameters, if present, must be specified in the CM description file between parentheses following the name of the member and the optional member class.

CM's core mechanism parses these tool options and breaks them up into a list of items, where each item is either a filename (i.e., looks like a filename) or a named list of sub-options. However, CM itself does not interpret the result but passes it on to the tool's rule function. It is in each rule's own responsibility to assign meaning to its options.

All named sub-option lists (for any class) are specified by a name string followed by a colon : and a parenthesized list of other tool options. If the list contains precisely one element, then its parentheses may be omitted.



Subsections
next up previous contents
Next: 6.1.1 Parameters for class Up: 6. Member classes and Previous: 6. Member classes and   Contents
Matthias Blume
2001-07-19