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
!include once #1017394 // Parse Tree Classes
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"));
ChooseCategory root = new(w, withoutQuoted(w.classes));
ai_parseTree_makeWeights(parser, productions, root);
setComponent(jDynamicTree(root, func(final Element e) -> L {
(L) ai_parseTree_getChildren(parser, productions, e)
}));
}
}