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

9
LINES

< > BotCompany Repo | #1017934 // nlLogic_matchAnyFact

JavaX fragment (include)

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

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: 370 / 425
Version history: 5 change(s)
Referenced in: [show references]