Skip to main content

module lang::sdf2::filters::CountPreferAvoid

rascal-0.40.16

Usage

import lang::sdf2::filters::CountPreferAvoid;

Dependencies

import ParseTree;
import Set;
import List;

function countPreferAvoidFilter

Import his module if you want prefer/avoid filtering with counting enabled for your grammar. Use @prefer and @avoid to label alternatives.

&T <:Tree countPreferAvoidFilter(amb(set[&T <:Tree] alternatives))