Skip to main content

module analysis::grammars::dramb::Model

rascal-0.40.17
drambiguity-0.3.5

Usage

import analysis::grammars::dramb::Model;

Source code

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

Dependencies

import ValueIO;
import ParseTree;
import util::Maybe;
import analysis::grammars::dramb::Util;
import DateTime;

data Tab

data Tab  
= sentence()
| graphic()
| grammar()
| diagnosis()
;

function model

Model model(&T<:Tree input, type[Tree] grammar, Tab tab=sentence())

Model model(loc saved)

data Model

data Model  
= model(type[Tree] grammar,
str input = "",
Maybe[Tree] tree = saveParse(grammar, input),
Maybe[loc] file = just(|home:///myproject.dra|),
str grammarText = format(grammar),
str commitMessage = "",
lrel[datetime stamp, str msg, str grammar] grammarHistory = [<now(), "initial", grammarText>],
lrel[str input, Symbol nt, Maybe[Tree] tree, str status] examples = [],
int generationEffort = 5,
list[str] errors = [],
bool labels = false,
bool literals = false,
bool \layout = false,
bool chars = true,
Tab tab = sentence()
)
;