MicroC Code Generator : OS Definition Tool : List Support in OSDT : : Syntax

Syntax

@<for> @<list-name> @<begin> $<list-name> @<end>

The definition of a list template-string starts with the @<for> token and ends with the @<end> token. All the text between these two tokens will be replaced with the definition of the API after the template-string is processed.
The string @<list-name> between the @<for> and the @<begin> is the name of the formal argument, being an Attribute or a Parameter, that represent a list of values (a string like: val_1@val_2@val3).
The string $<list-name> between @<begin> and @<end> is the string-template which will be used for each one of the list's elements. The $<list-name> in this string will be replaced with the current list element.