Warning: session_start(): open(/var/lib/php/sessions/sess_gc8p51e0toh4q770ri4hij5se7, 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
concept BInput > BEAObject {
S text;
toString { ret "[\*id*/] Input " + quote(text); }
}
concept BPattern > BEAObject {
S pattern;
toString { ret "[\*id*/] " + shortDynName(this) + " " + quote(pattern); }
void reactWith(BInput input) {}
}
concept BStarPattern > BPattern {
void reactWith(BInput input) {
LS mapping = matchesToStringList(flexMatchIC_first(pattern, input.text));
if (mapping == null) ret;
uniq BEAObject(
type := "match",
+input,
pattern := this,
+mapping);
}
}
concept BAngleVarPattern > BPattern {
void reactWith(BInput input) {
LS mapping = matchesToStringList(flexMatchAngleBracketVarsIC_first(pattern, input.text));
if (mapping == null) ret;
uniq BEAObject(
type := "match",
+input,
pattern := this,
+mapping);
}
}
cmodule2 > DynCRUD_v2 {
start-thread {
uniq BInput(text := "UBports community delivers 'second-largest release of Ubuntu Touch ever'");
//uniq BPattern(pattern := "* delivers *");
uniq BAngleVarPattern(pattern := " delivers ");
reactAll();
}
void reactAll {
for (BPattern p)
for (BInput i) pcall {
p.reactWith(i);
}
}
}