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

24
LINES

< > BotCompany Repo | #1014444 // Things that should be: Answer questions

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (8647L/60K).

!7

p {
  new SS out;
  
  S base = "Things that should be | Questions";
  for (S q : printIterate_nl(mL(base))) {
    temp tempIndent();
    S exp = nlPatternMap_flexMatchIC(mechMap("Question with wildcards => JavaX expression"), q);
    if (exp == null) continue with print("No code");
    print("Code: " + exp);
    S answer;
    try {
      answer = structureOrText(javaEval(exp));
    } catch e {
      printException(e);
      answer = "ERROR: " + getInnerMessage(e);
    }
    print("  ==> " + answer);
    out.put(q, answer);
  }
  
  editMechMap(barCombine(base, "Answers"), out);
}

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: #1014444
Snippet name: Things that should be: Answer questions
Eternal ID of this version: #1014444/9
Text MD5: 9455a4fbcb7b0561510d7c3a906123cc
Transpilation MD5: 52448292880f5e9baf6f29912f80c7d9
Author: stefan
Category: javax / a.i. / web
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-21 19:23:40
Source code size: 614 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 305 / 742
Version history: 8 change(s)
Referenced in: [show references]