Warning: session_start(): open(/var/lib/php/sessions/sess_svv58eg4r2k7pk8td5fo2c1ra6, 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
set flag DynModule. // for transpilation
sclass BottomUpParser > DynPrintLogWithInput {
transient S lastOutput;
start {
dm_useLocallyCopiedMechLists(); set flag NoFancyMechParsing.
ai_parser_activateStandardFunctions();
doEvery(5000, r { if (dm_isShowing()) update(inputChooser.input()) });
}
void update(fS s) {
temp enter();
S rendered = hijackPrint(r {
print("\n> " + s + "\n");
PTElement root = ai_parseToTreeWithGuessing(s); //ai_parseBottomUpToTree(s);
if (root == null) ret with print("No parse");
print("Have parse: " + className(root) + " - " + root);
print("SIMPLIFIED > " + ai_parseTree_simplifiedText(root));
print();
Collection all = ai_parseTree_simplifiedTexts(root);
pnl(all);
});
bool shouldPrint = neq(rendered, lastOutput);
lastOutput = rendered;
if (shouldPrint) print(rendered);
}
}