Home Page   We Generate Your Software.
Products Services Company Technology Demo Contact Site Map Search
The Somusar/SoProTech[tm] Booklet Series
Volume IX

"Code Generation Somusar Style"

Printer friendly

1. Introduction
2. Reproducing a POC on Your Computer
3. J2EE Generator
4. .NET Generator
5. PHP Generator
6. Java (J2SE) Generator
7. Bare Bones Multitier Generator
8. XML Processor
9. XML Generator
10. API Generator Producing C and HTML
10.1 Proof-of-concept (POC) Information
10.2 Description
10.3 C Generator
10.4 HTML Generator
11. VisualBasic.NET Generator Draft
12. VisualBasic.NET Generator
13. XML to Java Generator
14. PHP/HTML Generator
15. Java and JSP DAO Struts Generator
16. Further Reading

Chapter 10 - API Generator Producing C and HTML

10.1 - Proof-of-concept (POC) Information        top

  • Download the free Community Edition to test this generator, or send us an email for any question on this POC.
    [POC codename of this generator: c_api]

  • Original source code model taken from an internal POC.

  • Level of complexity: low.

  • Generated with the following SoProMach (what is SoProMach?):

  •     tefigel[tm]: version 104/community - 31Jan05

10.2 - Description        top

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

10.3 - C Generator        top

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

10.4 - HTML Generator        top

Table 27 - HTML Generator: Generated Files

File name Source code
APIdescr.html View

[Previous chapter]    [Next chapter]    [Back to top]

http:// www.somusar.com  / doc  / booklets  / cg_somusar  - Powered by SoProMach
Copyright © 2003-2012 Somusar - Trademarks - Legal - Privacy - Webmaster