1. The idea
1.1 Graphical representation of a program
1.2 A flat view ?
1.3 A dead end
1.4 Cheating ?
1.4.1 Adding functionality
1.4.2 Object orientation
1.4.3 Fiddling with function pointers
1.5 Context oriented programming
1.5.1 Sharing information within a level
1.5.2 Calling a function from a lower level
1.5.3 Definition of a level or a tree
2. Building blocks
3. Reusing modules in different context
Top Up
Prec

1.2 A flat view ?

Next

A program may be represented using either a flat view or a layered view. Imagine the following program:

We can organise logically the view into layers. Our original tree become simple with three modules: main, update, report. Then we produce a tree for update and another for report.

We can combine all trees together showing the layer relation.

Top Up
Prec

Next
One big HTML document