This POC provides an example of a code and documentation generator
driven by a simple textual model. The model describes a set of APIs, specifying
their interface and describing their function, and allows to
describe the relevant steps of each API. These descriptions are then
copied as comments into the generated C code.
The generator produces one skeleton C source file for each function and an HTML
documentation file describing all the interfaces.
Purpose of the POC is to provide an example of a concise textual
model for simple custom generation tasks.
All output files are generated from the input model file listed in the
following table.
Table 25 - Input Design Files
File name
|
Source code
|
APIdescr.txt
|
View
|
Table 26 - C Generator: Generated Files
File name
|
Source code
|
code_dir/open.c
|
View
|
code_dir/close.c
|
View
|
code_dir/read.c
|
View
|
code_dir/write.c
|
View
|
Table 27 - HTML Generator: Generated Files
File name
|
Source code
|
APIdescr.html
|
View
|
[Previous chapter]
[Next chapter]
[Back to top]
|