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

14
LINES

< > BotCompany Repo | #1002844 // Test Prolog with NL

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

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

!752

static S code = [=[
  
  yes
  
]=];

p {
  new Prolog p;
  p.showStuff = true;
  p.addClauses(nlParse(code));
  printStructure(p.solve(nlParse("yes")));
}

Author comment

Began life as a copy of #1002830

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: #1002844
Snippet name: Test Prolog with NL
Eternal ID of this version: #1002844/1
Text MD5: aaf662db3db24d158be28709a35fc503
Transpilation MD5: 6a770f2e6c6cc307561697180d0826e2
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-03-03 02:06:15
Source code size: 174 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 633 / 693
Referenced in: #1002845 - Test Prolog with NL 2 (if-then)
#3000382 - Answer for ferdie (>> t = 1, f = 0)