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

13
LINES

< > BotCompany Repo | #1002885 // Test shared prolog clauses

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (5503L/35K/113K).

!752

!include #1002884 // new Prolog

p {
  new Prolog p1;
  p1.addClause("hello world");
  
  new Prolog p2;
  p2.copyProgramFrom(p1);
  
  printStructure(p2.solve("hello world"));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002885
Snippet name: Test shared prolog clauses
Eternal ID of this version: #1002885/1
Text MD5: 391113e7685ffabb7d9921d446fb38a0
Transpilation MD5: 943e39c7dea3de8d448603a4c97dd091
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-03-17 18:19:13
Source code size: 196 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 496 / 549
Referenced in: [show references]