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

12
LINES

< > BotCompany Repo | #1012416 // ai_spec_answerPattern

JavaX fragment (include)

static void ai_spec_answerPattern() {
  if (!ai_postingInSubSpace()) ret;
  for (S q : ai_texts_unquote("$X", "should be", "answered")) {
    for (Pair<S> p : ai_texts_xy_unquoteBoth("$X", "is an answer pattern for", "$Y")) {
      SS match = matchDollarVarsIC(p.b, q);
      if (match != null)
        post(".", "Look for answer pattern", quote(formatDollarVarsIC(p.a, match)));
      else
        print("no match: " + unquote(p.b) + " / " + q);
    }
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1012416
Snippet name: ai_spec_answerPattern
Eternal ID of this version: #1012416/13
Text MD5: ec7e566e6b7c476f25d9caeb25ffcb01
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-02 18:44:38
Source code size: 469 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 514 / 480
Version history: 12 change(s)
Referenced in: [show references]