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

27
LINES

< > BotCompany Repo | #1023502 // Maybe [OK]

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

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

1  
!7
2  
3  
cmodule Maybe > DynPrintLog {
4  
  start-thread {
5  
    dm_useLocalMechListCopies();
6  
    
7  
    L<WordTokRule> rules = map wordTokReplacerRuleOnXY(tlftj([[
8  
      I'm drinking X => I drink X
9  
      I drink the wrong stuff => {I drink X} and {it is wrong to drink X}
10  
      X and Y => X
11  
      X and Y => Y
12  
      {I drink X} and {it is wrong to drink X} => I do {something wrong}
13  
      I do something wrong => bad
14  
      I do something good => good
15  
    ]]));
16  
    
17  
    S s = "maybe i'm drinking the wrong stuff";
18  
    
19  
    pnl(uniquifyMap tok_dropCurlyBrackets(iterateHull(func(S s) -> LS {
20  
      listPlusNempties(
21  
        applyWordTokRules(rules, s),
22  
        tok_dropCurlyBrackets(s),
23  
        ai_dropFillers1(s),
24  
        ai_groupTheAdjectiveNoun(s))
25  
    }, s)));
26  
  }
27  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023502
Snippet name: Maybe [OK]
Eternal ID of this version: #1023502/27
Text MD5: a839199502d9a5ce630b1d9e939b2b23
Transpilation MD5: 843a918bbca146a901b4ce66802c83a6
Author: stefan
Category: javax / logic engines
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-27 00:08:48
Source code size: 784 bytes / 27 lines
Pitched / IR pitched: No / No
Views / Downloads: 284 / 919
Version history: 26 change(s)
Referenced in: [show references]