Warning: session_start(): open(/var/lib/php/sessions/sess_epbt2vslgff3punvjqgokvrnet, 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
static L ai_parseTree_getChildren(AI_BottomUpParser1 parser, L productions, PTElement e) {
if (e.children == null)
e.children = ai_parseTree_makeChildren(parser, productions, e);
ret e.children;
}
static L ai_parseTree_makeChildren(AI_BottomUpParser1 parser, L productions, final PTElement e) {
if (e instanceof ChooseCategory)
ret map(((ChooseCategory) e).categories, func(S cat) { new HaveCategory(((ChooseCategory) e).word, cat) });
if (e instanceof HaveCategory) {
final HaveCategory h = cast e;
L l = ai_buParser1_reconstructedProductions(parser, productions, h.word, h.category);
ret map(l, func(ai_Reconstructed r) -> O {
r.production.b == null
? new HaveCategory(r.a, r.production.a, r)
: new ChoosePart(h.word, r)
});
}
if (e instanceof ChoosePart) {
ai_Reconstructed r = ((ChoosePart) e).reconstruction;
ret (L) ll(new HaveCategory(r.a, r.production.a),
new HaveCategory(r.b, r.production.b));
}
null;
}