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

30
LINES

< > BotCompany Repo | #1010268 // Object of interest [OK]

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

Download Jar. Libraryless. Click here for Pure Java version (14572L/103K).

!7

sS inputDiagrams = [[
  CirclesAndLines(circles=[Circle(text="Match", x=d("0.24495677233429394"), y=d("0.2011605415860735")), Circle(text="\"Have you heard about *\"", x=d("0.47982708933717577"), y=d("0.44294003868471954")), Circle(text="Object of interest", x=d("0.5720461095100865"), y=d("0.19922630560928434")), Circle(text="$1", x=d("0.8097982708933718"), y=d("0.42166344294003866"))], lines=[Arrow(a=t5, b=t26, text=""), Arrow(a=t5, b=t47, text="then"), Arrow(a=t47, b=t68, text="")], title="Match")
]];

static Web web;

p {
  web = webFromCALStructure(inputDiagrams);
  showWeb(web);
  bot();
  setConsoleInput("Have you heard about Stefan Reich?"); // Self-promo
  consoleAddSendButton();
}

answer {
  logInput(s);
  WebNode match = web_find(web, "Match");
  S pattern = web_operandText(match);
  if (flexMatchIC(pattern, dropPunctuationAtEnd(s), m)) {
    WebNode then = web_operand(match, "then");
    print("Then: " + then);
    Web w = web_subWeb(then);
    web_rename(w, "$1", $1);
    logStructureWithDate("webs-made.txt", w);
    showWeb(w);
    ret "Made web";
  }
}

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: #1010268
Snippet name: Object of interest [OK]
Eternal ID of this version: #1010268/19
Text MD5: f814a60dd700f47228094265edbb1ae8
Transpilation MD5: 0079881977ee91c4784eb2fc817bb346
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-08 01:28:43
Source code size: 1116 bytes / 30 lines
Pitched / IR pitched: No / No
Views / Downloads: 638 / 1445
Version history: 18 change(s)
Referenced in: [show references]