Warning: session_start(): open(/var/lib/php/sessions/sess_3u5656q7diefp29je79m59keel, 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
sS input = [[
Rule:
/,/ [regexp]
=> The line contains a comma.
Input: "Hello,"
Output: "The line contains a comma."
----
Same rule.
Input: "Yo."
Output: -
]];
p-exp {
scoreToConsole(voidfunc(Scorer scorer) {
LS tests = splitAtMultipleMinusLines(input);
SS map = null;
for (S test : tests) {
print();
SS lastMap = map;
map = parseColonProperties_withMultiLines(test, ciSS());
if (containsTrimmedLineIC(test, "Same rule."))
map.put("Rule", lastMap.get("Rule"));
pnlStruct(map);
S input = unquote(map.get("Input"));
S output = unquote(map.get("Output"));
PairS rule = splitAtDoubleArrow_pair(map.get("Rule"));
S out = "-";
S in = rule.a;
PairS inAndType = splitTrailingSquareBracketStuff(in);
if (eqic(inAndType.b, "regexp"))
if (regexpContains(dropTrailingAndLeadingSlash(inAndType.a), input))
out = rule.b;
scorer.eq(out, output);
}
});
}