Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1017934 // nlLogic_matchAnyFact

JavaX fragment (include)

sbool nlLogic_matchAnyFact(NLLogicChecker_v2 c, S pat, NLLogicChecker_v2.Matching m) {
  LS patterns = tok_splitAtVerticalBar(pat);
  for (S fact : c.facts) {
    bool result =  nlLogic_matchMultiplePatterns(c, patterns, fact, m);
    if (m.verbose) print("matched " + quote(pat) + " with " + quote(fact) + " & " + sfu(m.matches) + " => " + result);
    if (result) true;
  }
  false;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017934
Snippet name: nlLogic_matchAnyFact
Eternal ID of this version: #1017934/6
Text MD5: 93230c47fd4432f50aa5bcf56415253c
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-23 00:00:06
Source code size: 394 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 298 / 349
Version history: 5 change(s)
Referenced in: [show references]