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

26
LINES

< > BotCompany Repo | #1025631 // Time Table [dev.]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (6669L/34K).

!7

cmodule TimeTable > DynPrintLog {
  sS program = [[
    we have (monday, tuesday, wednesday, thursday, friday)
    we have (math, english, knitting and boxing)
  ]];

  start-thread {
    new PhilosophyBot1 bot;
    bot.program = program;
    
    bot.onFactDo("we have x", (map, env) -> {
      S x = map.get("x");
      print("We have: " + sfu(tok_splitAtComma(x)));
    });
    
    bot.onFactDo("we have x", (map, env) -> {
      S x = map.get("x");
      print("We have: " + sfu(tok_splitAtCommaOrAnd(x)));
    });

    bot.run();
    pnl(bot.facts);
  }
}

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: 238 / 768
Version history: 3 change(s)
Referenced in: [show references]