![]() |
|
Navigation |
Synopsis Ambiguity diagnosis suggests changes to syntax definitions to make them non-ambiguous.
Description The
Ambiguity library, a.k.a. DrAmbiguity, contains a diagnosis tool that can help you find the causes of ambiguous parse trees and possible Disambiguations to solve them in a SyntaxDefinition.
DrAmbiguity is a library that processes any parse forest produced by a parser generated from Rascal's SyntaxDefinitions. Please read Disambiguation first.
Examples
import Ambiguity; diagnose(t); // for any t of which you know it contains an ambiguity
Benefits
Pitfalls
![]() |