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

17
LINES

< > BotCompany Repo | #1027880 // More complex test of NewEngine [dev.]

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

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

1  
cmodule NewEngineTest > DynPrintLog {
2  
  transient new NewEngine engine;
3  
4  
  start-thread {
5  
    engine.verbose = true;
6  
    
7  
    engine.addLogicRule(new BasicLogicRule(
8  
      And(
9  
        formatWithFragmentsAndDollarSymVars("hasWord($x)"),
10  
        formatWithFragmentsAndDollarSymVars("ewic_notSame($x, *)", "zimmer")),
11  
        formatWithFragmentsAndDollarSymVars("$x ist ein Zimmer")));
12  
        
13  
    engine.think();
14  
    
15  
    //pnl(facts = engine.factsInOrderOfDefinition();
16  
  }
17  
}

Author comment

Began life as a copy of #1027763

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1027880
Snippet name: More complex test of NewEngine [dev.]
Eternal ID of this version: #1027880/5
Text MD5: 0d591970adaff2740ddfd1251d619724
Transpilation MD5: b3f0d096a496d0637e30f7f4d403343b
Author: stefan
Category: javax / new gazelle
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-16 14:32:00
Source code size: 492 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 195 / 592
Version history: 4 change(s)
Referenced in: [show references]