Skip to main content

module analysis::grammars::dramb::Simplify

rascal-0.40.17
drambiguity-0.3.5

Usage

import analysis::grammars::dramb::Simplify;

Source code

http://github.com/cwi-swat/drambiguity/blob/main/src/analysis/grammars/dramb/Simplify.rsc

Dependencies

import ParseTree;
import Boolean;
import util::Math;
import analysis::grammars::dramb::Detection;
import analysis::grammars::dramb::Util;
import Set;
import IO;

function simplify

Simplifies an ambiguous parse forest while trying to remain ambiguous.

Tree simplify(type[Tree] gr, Tree t, int effort=100)

Tree simplify(Tree t)