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).

1  
!7
2  
3  
p {
4  
  new SS out;
5  
  
6  
  S base = "Things that should be | Questions";
7  
  for (S q : printIterate_nl(mL(base))) {
8  
    temp tempIndent();
9  
    S exp = nlPatternMap_flexMatchIC(mechMap("Question with wildcards => JavaX expression"), q);
10  
    if (exp == null) continue with print("No code");
11  
    print("Code: " + exp);
12  
    S answer;
13  
    try {
14  
      answer = structureOrText(javaEval(exp));
15  
    } catch e {
16  
      printException(e);
17  
      answer = "ERROR: " + getInnerMessage(e);
18  
    }
19  
    print("  ==> " + answer);
20  
    out.put(q, answer);
21  
  }
22  
  
23  
  editMechMap(barCombine(base, "Answers"), out);
24  
}

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: 317 / 773
Version history: 8 change(s)
Referenced in: [show references]