Warning: session_start(): open(/var/lib/php/sessions/sess_0aj8p2spghnpavodeddd8s2h5c, 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
sbool flexMatchIC_iterate_debug;
sbool flexMatchIC_iterate_useTokenization = true;
svoid flexMatchIC_iterate(S pat, S input, VF1 onMatch, O... _) {
if (flexMatchIC_iterate_debug)
print("flexMatchIC_iterate " + pat + " / " + input);
optPar IF1 tokenizer = lambda1 javaTokNPunctuation_plusAsterisk;
flexMatchIC_iterate(pat,
callTokenizer(tokenizer, pat),
callTokenizer(tokenizer, input),
onMatch, _);
}
svoid flexMatchIC_iterate(S pat, LS tokPat, LS tokInput, VF1 onMatch, O... _) {
L varIndices = flexMatchIC_getVarIndices(tokPat, tokInput);
if (varIndices == null) ret;
if (flexMatchIC_iterate_debug)
printStructs(+varIndices, +tokPat, +tokInput);
LL spreadInputs = ai_spreadCertainIndices_2(tokPat, tokInput, varIndices);
for (L tok : spreadInputs) {
if (flexMatchIC_iterate_debug)
print("Testing spread " + sfu(codeTokens(tokPat)) + " with input: " + sfu(codeTokens(tok)));
new Matches m;
if (flexMatchIC_iterate_useTokenization
? match3(tokPat, tok, m)
: match(pat, tok, m)) {
if (flexMatchIC_iterate_debug)
print("Got match: " + m);
callF(onMatch, m);
}
}
}