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

20
LINES

< > BotCompany Repo | #1002848 // Test Prolog with NL 3 ($x=$x)

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

Libraryless. Click here for Pure Java version (4687L/30K/97K).

1  
!752
2  
3  
static S code = [=[
4  
  
5  
  [$x=$x]
6  
7  
]=];
8  
9  
p {
10  
  Lisp parsed = nlParse(code, false); // no unbracket
11  
  printStructure("parsed: " + parsed);
12  
  assertTrue("juxta", isJuxta(parsed));
13  
  print("ops: " + structure(snlSplitOps(parsed.get(0))));
14  
  
15  
  new Prolog p;
16  
  p.showStuff = true;
17  
  p.addClauses(parsed);
18  
  print("Program: " + structure_seen(p.program));
19  
  printStructure(p.solve(nlParse("1=1")));
20  
}

Author comment

Began life as a copy of #1002845

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: #1002848
Snippet name: Test Prolog with NL 3 ($x=$x)
Eternal ID of this version: #1002848/1
Text MD5: e3f96f2144f750f2437a69dc27d05aa1
Transpilation MD5: 93cc765b2bbe13cc2df2833d028048c0
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-03-03 03:23:18
Source code size: 419 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 614 / 630
Referenced in: [show references]