Skip to main content

module lang::sdf2::filters::Reject

rascal-0.34.0

Usage

import lang::sdf2::filters::Reject;

Dependencies

import ParseTree;

function rejectFilter

Import his module if you want SDF2 style reject filtering enabled for your grammar. Use @reject to label one alternative and the whole non-terminal will be filtered if it matches.

&T <: Tree rejectFilter(amb(set[&T <: Tree] alts))