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

14
LINES

< > BotCompany Repo | #1018054 // nlLogic_checkFirstConditions

JavaX fragment (include)

sbool nlLogic_checkFirstConditions_debug;

// returns remaining conditions
static Exp nlLogic_checkFirstConditions(NLLogicChecker_v2 c, IfThen rule, NLLogicChecker_v2.Matching m) {
  Exp exp = rule.in;
  while ping (exp != null) {
    Pair<Bool, Exp> p = c.checkFirstCondition(exp, m);
    if (nlLogic_checkFirstConditions_debug)
      print("nlLogic_checkFirstConditions: exp=" + exp + ", p=" + p);
    if (!p.a) break;
    exp = p.b;
  }
  ret exp;
}

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: #1018054
Snippet name: nlLogic_checkFirstConditions
Eternal ID of this version: #1018054/4
Text MD5: d76af55171e95569b90cf465891dcb3d
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-29 00:10:24
Source code size: 465 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 190 / 234
Version history: 3 change(s)
Referenced in: [show references]