Skip to main content

module analysis::grammars::Brackets

rascal-0.40.16

Usage

import analysis::grammars::Brackets;

Dependencies

import Grammar;
import Node;
import lang::rascal::grammar::definition::Priorities;
import ParseTree;

function prioritiesOf

DoNotNest prioritiesOf(type[&T] t)

function parens

default &T parens(DoNotNest prios, node parent, node kid, &T x,  &T(&T x) parenizer)

&T parens(DoNotNest prios, node parent, node kid, &T x, &T(&T x) parenizer)

function astPosition

int astPosition(int pos, Production p)

function isASTsymbol

bool isASTsymbol(\layouts(_))

bool isASTsymbol(\keywords(str name))

bool isASTsymbol(\lit(str string))

bool isASTsymbol(\cilit(str string))

bool isASTsymbol(\empty())

default bool isASTsymbol(Symbol _)