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

17
LINES

< > BotCompany Repo | #1002828 // Test class Prolog 2 (X=X)

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

Libraryless. Click here for Pure Java version (1342L/9K/31K).

1  
!752
2  
3  
!include #1002826 // Prolog
4  
5  
p {
6  
  Prolog p;
7  
  
8  
  p = new Prolog;
9  
  p.showStuff = true;
10  
  p.addClause(lisp("yes", "frog"));
11  
  printStructure(p.solve(lisp("yes", "X")));
12  
  
13  
  p = new Prolog;
14  
  p.addClause(lisp("=", "X", "X"));
15  
  Map solution = p.solve(lisp("=", "A", "hello"));
16  
  printStructure(solution);
17  
}

Author comment

Began life as a copy of #1002827

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: #1002828
Snippet name: Test class Prolog 2 (X=X)
Eternal ID of this version: #1002828/1
Text MD5: 070f61c0c7fe3f51ae945b714fe5551c
Transpilation MD5: e1e788d81a4c413d079e0c7568438c01
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-29 02:03:18
Source code size: 328 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 644 / 686
Referenced in: [show references]