80 new ClientList(); |
80 new ClientList(); |
81 setUpBridgeLog(); |
81 setUpBridgeLog(); |
82 //*TTY*/startThreadsFirstTime(); |
82 //*TTY*/startThreadsFirstTime(); |
83 /*PIDE*/log(1, "-->ISA: try connection with ISABELLE_HOME=\"" + isabelle_home + "\"..."); |
83 /*PIDE*/log(1, "-->ISA: try connection with ISABELLE_HOME=\"" + isabelle_home + "\"..."); |
84 //see libisabelle/modules/examples/src/main/java/edu/tum/cs/isabelle/examples/Hello_PIDE.java |
84 //see libisabelle/modules/examples/src/main/java/edu/tum/cs/isabelle/examples/Hello_PIDE.java |
|
85 /* cp from |
|
86 * https://hg.risc.uni-linz.ac.at/wneuper/isac/file/84f1ca6a6dd9/isac-java/src/java/isac/bridge/BridgeMain.java#l85 |
|
87 85 log(1, "-->ISA: try connection with ISABELLE_HOME=\"" + isabelle_home + "\"..."); |
|
88 86 Setup setup = new Setup(Paths.get(isabelle_home), JPlatform.guess(), |
|
89 87 new Version("2015"), Setup.defaultPackageName()); |
|
90 88 Environment env = JSetup.makeEnvironment(setup); // ohne Duration |
|
91 89 Configuration config = Configuration.fromBuiltin("libisabelle_Isac"); |
|
92 90 JSystem sys = JSystem.create(env, config); |
|
93 92 |
|
94 93 connection_to_kernel_ = sys; |
|
95 94 log(1, "<--ISA: connection established"); |
|
96 */ |
|
97 /* |
|
98 package info.hupel.isabelle.examples.java; |
|
99 |
|
100 import java.nio.file.Path; |
|
101 import java.nio.file.Paths; |
|
102 import java.util.Arrays; |
|
103 import info.hupel.isabelle.api.*; |
|
104 import info.hupel.isabelle.japi.*; |
|
105 import info.hupel.isabelle.setup.*; |
|
106 |
|
107 public class Hello_PIDE { |
|
108 |
|
109 public static void main(String args[]) { |
|
110 JResources res = JResources.dumpIsabelleResources(); |
|
111 Configuration config = Configuration.simple("Protocol"); |
|
112 Environment env = JSetup.makeEnvironment(JSetup.defaultSetup(new Version.Stable("2017")), res); |
|
113 JSystem sys = JSystem.create(env, config); |
|
114 String response = sys.invoke(Operations.HELLO, "world"); |
|
115 System.out.println(response); |
|
116 sys.dispose(); |
|
117 } |
|
118 } |
|
119 */ |
85 JResources res = JResources.dumpIsabelleResources(); |
120 JResources res = JResources.dumpIsabelleResources(); |
|
121 Path path = java.nio.file.Paths.get |
|
122 ("/home/wneuper/.isabelle/isabisac/heaps/polyml-5.7.1_x86-linux/libisabelle_Isac"); |
86 Configuration config = Configuration.simple("Protocol"); |
123 Configuration config = Configuration.simple("Protocol"); |
87 // Configuration config = Configuration.fromBuiltin("libisabelle_Isac"); |
|
88 Environment env = JSetup.makeEnvironment(JSetup.defaultSetup(new Version.Stable("2018")), res); |
124 Environment env = JSetup.makeEnvironment(JSetup.defaultSetup(new Version.Stable("2018")), res); |
89 JSystem sys = JSystem.create(env, config); |
125 JSystem sys = JSystem.create(env, config); |
90 |
126 |
91 /*PIDE*/connection_to_kernel_ = sys; |
127 /*PIDE*/connection_to_kernel_ = sys; |
92 /*PIDE*/log(1, "<--ISA: connection established"); |
128 /*PIDE*/log(1, "<--ISA: connection established"); |
93 |
129 |
94 } |
130 } |
95 |
131 |