Function opg::dfs::compose_elements[][src]

pub fn compose_elements(
    mono: &HashMap<String, HashSet<String>>,
    con: &HashMap<String, HashSet<String>>
) -> HashMap<String, HashSet<String>>

Compose the elements from mono and con.

Input

mono the direct relation for terminals and non-terminals.

con the inherit relation between non-terminals.

Return

A Hashmap of VT.

Example

let firstvt = dfs::compose_elements(&firstvtmono, &firstvtcon);

Principles

By create new Dfs struct and call dfs() function, the following process is proceed: