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

19
LINES

< > BotCompany Repo | #1023175 // I want you to be... [prelude spike v2]

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

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

1  
!7
2  
3  
cmodule IWantYouToBe > DynPrintLog {
4  
  transient WordTokRule rule = wordTokReplacerRule(
5  
    "I want you to be my assistant", "assistant", "I want that {you are my assistant}");
6  
7  
  <A extends RuleOnString> A process(A rule, S s) {
8  
    rule.process(s);
9  
    ret rule;
10  
  }
11  
  
12  
  start-thread {
13  
    assertNull(process(rule, "I want you to be his friend").map);
14  
    printStruct(assertEquals(litcimap("assistant", "girl"),
15  
      process(rule, "I want you to be my girl").map));
16  
    assertEmitsContainIC(rule, "I want that {you are my girl}");
17  
    printDone();
18  
  }
19  
}

Author comment

Began life as a copy of #1023161

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: #1023175
Snippet name: I want you to be... [prelude spike v2]
Eternal ID of this version: #1023175/6
Text MD5: 02c70c883b2551bcd2c8ad592d41c548
Transpilation MD5: 5913f42e89887567979f4e85c7db4173
Author: stefan
Category: javax / a.i.
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-15 23:47:34
Source code size: 580 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 199 / 306
Version history: 5 change(s)
Referenced in: [show references]