Skip to main content

module analysis::grammars::dramb::Diagnose

rascal-0.40.17
drambiguity-0.3.5

Usage

import analysis::grammars::dramb::Diagnose;

Source code

http://github.com/cwi-swat/drambiguity/blob/main/src/analysis/grammars/dramb/Diagnose.rsc

Dependencies

import ParseTree;
import Set;
import String;
import analysis::grammars::dramb::Brackets;
import analysis::grammars::dramb::Util;
import lang::rascal::format::Grammar;
import salix::HTML;
import salix::Node;
import salix::lib::Bootstrap;

function diagnose

void diagnose(Tree t:amb(_))

default void diagnose(Tree _)

function findCauses

void findCauses(amb(set[Tree] alts))

function report

void report(Tree x, Tree y)

function zipFill

list[tuple[&T,&T]] zipFill(list[&T] x, list[&T] y, &T fill)

function ruleDifferences

void ruleDifferences(Tree x, Tree y)

function operatorPrecedence

void operatorPrecedence(Tree x, Tree y)

alias Word

tuple[loc pos, Symbol cat, str word]

alias Words

set[Word]

function tokens

void tokens(Tree x, Tree y)

function verticalCauses

str verticalCauses(Tree x, Tree y, set[Production] pX, set[Production] pY)

function exceptAdvise

str exceptAdvise(Tree x, set[Production] pY)

function danglingCauses

str danglingCauses(Tree x, Tree y)

function danglingFollowSolutions

str danglingFollowSolutions(Tree x, Tree y)

function rules

void rules(list[Production] rs)

void rules(set[Production] r)