Warning: session_start(): open(/var/lib/php/sessions/sess_eq6phfviuqk8inmjo1imeldsie, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
sclass BottomUpParser > DynSCPWithInput {
start {
dm_useLocallyCopiedMechLists(); set flag NoFancyMechParsing.
}
void update(S s) {
temp enter();
if (!isShowing()) { inputChooser.forgetInput(); ret; }
final new AI_BottomUpParser1 parser;
parser.parse(s);
AI_BottomUpParser1.Word w = parser.fullGroup();
print("Full group: " + w);
if (w == null) ret;
final L productions = ai_buParser_parseWeightedProductions();
print("Have " + n2(productions, "production"));
print("Classes: " + sfu(w.classes));
ChooseCategory root = new(w, withoutQuoted(w.classes));
ai_parseTree_makeWeights(parser, productions, root);
ai_parseTree_makeTotalWeights(root, 1);
setComponent(jDynamicTree(root, func(final PTElement e) -> L { e.children }));
}
}