Uses 911K of libraries. Click here for Pure Java version (6669L/34K).
1 | !7 |
2 | |
3 | cmodule TimeTable > DynPrintLog { |
4 | sS program = [[ |
5 | we have (monday, tuesday, wednesday, thursday, friday) |
6 | we have (math, english, knitting and boxing) |
7 | ]]; |
8 | |
9 | start-thread { |
10 | new PhilosophyBot1 bot; |
11 | bot.program = program; |
12 | |
13 | bot.onFactDo("we have x", (map, env) -> { |
14 | S x = map.get("x"); |
15 | print("We have: " + sfu(tok_splitAtComma(x))); |
16 | }); |
17 | |
18 | bot.onFactDo("we have x", (map, env) -> { |
19 | S x = map.get("x"); |
20 | print("We have: " + sfu(tok_splitAtCommaOrAnd(x))); |
21 | }); |
22 | |
23 | bot.run(); |
24 | pnl(bot.facts); |
25 | } |
26 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025631 |
Snippet name: | Time Table [dev.] |
Eternal ID of this version: | #1025631/4 |
Text MD5: | 4a3f1e9dd13bf32bed877649e729fa40 |
Transpilation MD5: | 6262930794df995a24d11092ab8cadcd |
Author: | stefan |
Category: | |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-10 01:30:59 |
Source code size: | 565 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 239 / 769 |
Version history: | 3 change(s) |
Referenced in: | [show references] |