Download Jar. Libraryless. Click here for Pure Java version (14572L/103K).
1 | !7 |
2 | |
3 | sS inputDiagrams = [[ |
4 | 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")
|
5 | ]]; |
6 | |
7 | static Web web; |
8 | |
9 | p {
|
10 | web = webFromCALStructure(inputDiagrams); |
11 | showWeb(web); |
12 | bot(); |
13 | setConsoleInput("Have you heard about Stefan Reich?"); // Self-promo
|
14 | consoleAddSendButton(); |
15 | } |
16 | |
17 | answer {
|
18 | logInput(s); |
19 | WebNode match = web_find(web, "Match"); |
20 | S pattern = web_operandText(match); |
21 | if (flexMatchIC(pattern, dropPunctuationAtEnd(s), m)) {
|
22 | WebNode then = web_operand(match, "then"); |
23 | print("Then: " + then);
|
24 | Web w = web_subWeb(then); |
25 | web_rename(w, "$1", $1); |
26 | logStructureWithDate("webs-made.txt", w);
|
27 | showWeb(w); |
28 | ret "Made web"; |
29 | } |
30 | } |
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: | 946 / 2206 |
| Version history: | 18 change(s) |
| Referenced in: | [show references] |