| 4 | |
| 5 | == Define interface layers == |
| 6 | |
| 7 | We can define the hierarchy of the interface layers with a list. The first element of the list is at the bottom of the layer hierarchy and the last element of the list is at the top of it. This means, that '''by default every layer can call functions from its own layer and the layer immediately below'''. The list contains tuples. Every tuple defines an interface layer: the first element of the tuple is a label with the name of the label; the second element is a list, that contains the modules, which from the layer is built. There are four ways to specify this list with: |
| 8 | |
| 9 | * name of the modules: {{{[{il1,[one1,one2]},{il2,[two1]}]}}}, |
| 10 | * module nodes: {{{[{il1,[{'gn',module,2},{'gn',module,4}]},{il2,[{'gn',module,6}]}]}}}, |
| 11 | * list of regexps: {{{[{il1,["^(/home/user)/[a-zA-Z0-9_/]+(/layer1)$"]},{il2,["(/layer2)$","^(/home/user/layer2/src)$"]}]}}}, |
| 12 | * file, that contain regexps: {{{[{il1,["layer1"]}, {il2,["layer2"]}]}}}. In this example ''layer1'' and ''layer2'' are files, which contain regexps. |