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

16
LINES

< > BotCompany Repo | #1018079 // nlLogic_applyMatches

JavaX fragment (include)

static Exp nlLogic_applyMatches(Exp e, SS m) {
  if (e == null) null;
  if (e cast And)
    ret And(nlLogic_applyMatches(e.a, m), nlLogic_applyMatches(e.b, m));
  if (e cast ExpNot)
    ret ExpNot(nlLogic_applyMatches(e.a, m));
  if (e cast Func)
    ret Func(e.name, nlLogic_applyMatches(e.arg, m));
    
  if (e cast Sentence)
    ret Sentence(javaTok(ai_standardReplaceVars(e.text(), m)));
  if (e cast Sentence2)
    ret Sentence2(ai_standardReplaceVars(e.text(), m));
    
  ret e;
}

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: #1018079
Snippet name: nlLogic_applyMatches
Eternal ID of this version: #1018079/1
Text MD5: 95de3f2b5808184b2dc92522ed4ab9c7
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 15:26:23
Source code size: 503 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 287 / 320
Referenced in: [show references]