module analysis::grammars::dramb::Brackets
rascal-0.40.17
drambiguity-0.3.5
Usage
import analysis::grammars::dramb::Brackets;
Source code
http://github.com/cwi-swat/drambiguity/blob/main/src/analysis/grammars/dramb/Brackets.rsc
Dependencies
import analysis::grammars::dramb::Util;
import ParseTree;
function rule
Production rule(Symbol s)
function bo
Production bo()
function bc
Production bc()
function la
Production la()
function wrap
Tree wrap(Tree x)
list[Tree] wrap(Symbol s, list[Tree] args)
function brackets
Adds a bracket rule around all directly recursive non-terminals (expressions).
Tree brackets(Tree t)