Skip to main content

module analysis::grammars::Ambiguity

rascal-0.40.16

Usage

import analysis::grammars::Ambiguity;

Dependencies

import ParseTree;
import ValueIO;
import Message;
import List;
import Set;
import Grammar;
import lang::rascal::format::Grammar;

function diagnose

list[Message] diagnose(Tree t)

list[Message] diagnose(str amb)

function findCauses

list[Message] findCauses(Tree a)

list[Message] findCauses(Tree x, Tree y)

function verticalCauses

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

function exceptAdvise

list[Message] exceptAdvise(Tree x, set[Production] _, set[Production] pY)

function deeperCauses

list[Message] deeperCauses(Tree x, Tree y, set[Production] pX, set[Production] pY)

function yield

list[int] yield(Tree x)

function reorderingCauses

list[Message] reorderingCauses(Tree x, Tree y)

function priorityCauses

list[Message] priorityCauses(Tree x, Tree y)

function danglingCauses

list[Message] danglingCauses(Tree x, Tree y)

function danglingFollowSolutions

list[Message] danglingFollowSolutions(Tree x, Tree y)

function danglingOffsideSolutions

list[Message] danglingOffsideSolutions(Tree x, Tree y)

function associativityCauses

list[Message] associativityCauses(Tree x, Tree y)