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

16
LINES

< > BotCompany Repo | #1002814 // GNU Prolog Test

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

Uses 419K of libraries. Click here for Pure Java version (59L/1K/2K).

1  
!752
2  
!1002813 // gnu prolog
3  
4  
import gnu.prolog.vm.*;
5  
import gnu.prolog.term.*;
6  
7  
p {
8  
  new Environment env;
9  
  // load stuff...
10  
  
11  
  Interpreter interpreter = env.createInterpreter();
12  
  env.runInitialization(interpreter);
13  
  
14  
  Term term = AtomTerm.get("true");
15  
  print(interpreter.runOnce(term));
16  
}

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: #1002814
Snippet name: GNU Prolog Test
Eternal ID of this version: #1002814/1
Text MD5: f5c11caee68f2cc91d438297bca50084
Transpilation MD5: f8ef9d2b6e6c7b88f7d77d5a7910546c
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-27 01:16:25
Source code size: 311 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 538 / 597
Referenced in: [show references]