Skip to main content

module lang::sdf2::filters::DirectThenCountPreferAvoid

rascal-0.40.16

Usage

import lang::sdf2::filters::DirectThenCountPreferAvoid;

Dependencies

import ParseTree;
import Set;
import List;

function directThenCountPreferAvoidFilter

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

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

function getTags

list[list[value]] getTags(list[Tree] ts)

list[value] getTags(Tree t)