Module cluster_mapping

Implements the functionality that composes the clusters into three trees.

Copyright © (C) 2015, Pablo Lamela, Simon Thompson

Authors: Pablo Lamela Seijas (P.Lamela-Seijas@kent.ac.uk), Simon Thompson (S.J.Thompson@kent.ac.uk).

Description

Implements the functionality that composes the clusters into three trees. One with the common clusters, two with each set of exclusive clusters. It also creates the AST joints, (calls to functions), which link the clusters together in the resulting modules.

Data Types

col_data()

col_data() = #col_data{beh_funcs = sets:set({atom(), integer()}), module_info1 = sets:set({atom(), integer()}), module_info2 = sets:set({atom(), integer()}), inscope_funs1 = [{atom(), atom(), integer()}], inscope_funs2 = [{atom(), atom(), integer()}], var_for_module = string()}

Record for use as accumulator when mapping clusters. It collects global information about the generated modules. Contains the following fields:

Function Index

clusters_to_ast/2 It generates three ASTs, one for each cluster dictionary.

Function Details

clusters_to_ast/2

clusters_to_ast(Acc::cluster_folding:acc(), OutModule::atom()) -> [wrangler_syntax:syntaxTree()]

It generates three ASTs, one for each cluster dictionary.


Generated by EDoc, Nov 5 2015, 16:30:18.