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

Example
The Design Attribute CK_workingDay is defined in the Dictionary as

MONDAY@TUESDAY@WEDNESDAY@THURSDAY

The Design Attribute CK_freeDays is defined in the Dictionary as

SUNDAY@FRIDAY@SATURDAY

The definition of the API is:

============ Beginning of API Definition ================

The Working Days are:

@<for> @<CK_workingDays> @<begin> - $<CK_workingDays> is a working day

@<end>

 

The Free Days are:

@<for> @<CK_freeDays> @<begin> - $<CK_freeDays> is NOT a working day

@<end>

============ End of API Definition ===================

The resulting string output of the API after processing is:

----------------------------------------

The Working Days are:

- MONDAY is a working day

- TUESDAY is a working day

- WEDNESDAY is a working day

- THURSDAY is a working day

 

The Free Days are:

- SUNDAY is NOT a working day

- FRIDAY is NOT a working day

- SATURDAY is NOT a working day

----------------------------------------