Skip to content

Commit 83bd1e0

Browse files
committed
more doc and py generation
1 parent eebe397 commit 83bd1e0

30 files changed

Lines changed: 3306 additions & 243 deletions

File tree

api.meta.json

Lines changed: 1144 additions & 0 deletions
Large diffs are not rendered by default.

api.meta.md

Lines changed: 480 additions & 0 deletions
Large diffs are not rendered by default.

api.py

Lines changed: 374 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,374 @@
1+
import enum
2+
import abc
3+
import typing
4+
class ExampleDesc:
5+
""""""
6+
7+
name : str
8+
description : str
9+
10+
class ProofScriptCommandDesc:
11+
""""""
12+
13+
14+
class ProofMacroDesc:
15+
""""""
16+
17+
name : str
18+
category : str
19+
description : str
20+
scriptCommandName : str
21+
22+
class TraceValue(enum.Enum):
23+
""""""
24+
25+
Off = None
26+
Message = None
27+
All = None
28+
29+
class SetTraceParams:
30+
""""""
31+
32+
value : TraceValue
33+
34+
class EnvironmentId:
35+
""""""
36+
37+
envId : str
38+
39+
class ProofId:
40+
""""""
41+
42+
env : EnvironmentId
43+
proofId : str
44+
45+
class TreeNodeDesc:
46+
""""""
47+
48+
49+
class TreeNodeId:
50+
""""""
51+
52+
id : str
53+
54+
class NodeId:
55+
""""""
56+
57+
proofId : ProofId
58+
nodeId : int
59+
60+
class PrintOptions:
61+
""""""
62+
63+
unicode : bool
64+
width : int
65+
indentation : int
66+
pure : bool
67+
termLabels : bool
68+
69+
class NodeTextId:
70+
""""""
71+
72+
nodeId : NodeId
73+
nodeTextId : int
74+
75+
class NodeTextDesc:
76+
""""""
77+
78+
id : NodeTextId
79+
result : str
80+
81+
class TermActionId:
82+
""""""
83+
84+
nodeId : NodeId
85+
pio : str
86+
id : str
87+
88+
class TermActionKind(enum.Enum):
89+
""""""
90+
91+
BuiltIn = None
92+
Script = None
93+
Macro = None
94+
Taclet = None
95+
96+
class TermActionDesc:
97+
""""""
98+
99+
commandId : TermActionId
100+
displayName : str
101+
description : str
102+
category : str
103+
kind : TermActionKind
104+
105+
class List:
106+
""""""
107+
108+
109+
class SortDesc:
110+
""""""
111+
112+
string : str
113+
documentation : str
114+
extendsSorts : List
115+
anAbstract : bool
116+
s : str
117+
118+
class FunctionDesc:
119+
""""""
120+
121+
name : str
122+
sort : str
123+
retSort : SortDesc
124+
argSorts : List
125+
rigid : bool
126+
unique : bool
127+
skolemConstant : bool
128+
129+
class ContractId:
130+
""""""
131+
132+
envId : EnvironmentId
133+
contractId : int
134+
135+
class ContractDesc:
136+
""""""
137+
138+
contractId : ContractId
139+
name : str
140+
displayName : str
141+
typeName : str
142+
htmlText : str
143+
plainText : str
144+
145+
class LoadParams:
146+
""""""
147+
148+
keyFile : str
149+
javaFile : str
150+
classPath : List
151+
bootClassPath : str
152+
includes : List
153+
154+
class ProblemDefinition:
155+
""""""
156+
157+
sorts : List
158+
functions : List
159+
predicates : List
160+
antecTerms : List
161+
succTerms : List
162+
163+
class LogTraceParams:
164+
""""""
165+
166+
messag : str
167+
verbose : str
168+
169+
class MessageType(enum.Enum):
170+
""""""
171+
172+
Unused = None
173+
Error = None
174+
Warning = None
175+
Info = None
176+
Log = None
177+
Debug = None
178+
179+
class ShowMessageParams:
180+
""""""
181+
182+
type : MessageType
183+
message : str
184+
185+
class MessageActionItem[]:
186+
""""""
187+
188+
189+
class ShowMessageRequestParams:
190+
""""""
191+
192+
type : MessageType
193+
message : str
194+
actions : MessageActionItem[]
195+
196+
class MessageActionItem:
197+
""""""
198+
199+
title : str
200+
201+
class Range:
202+
""""""
203+
204+
start : int
205+
end : int
206+
207+
class ShowDocumentParams:
208+
""""""
209+
210+
uri : str
211+
external : bool
212+
takeFocus : bool
213+
selection : Range
214+
215+
class ShowDocumentResult:
216+
""""""
217+
218+
success : bool
219+
220+
class TaskFinishedInfo:
221+
""""""
222+
223+
224+
class TaskStartedInfo:
225+
""""""
226+
227+
228+
class KeyServer():
229+
def env_contracts(self, arg0 : EnvironmentId) -> typing.List[ContractDesc]:
230+
""""""
231+
232+
return self.rpc.call_sync("env/contracts", )
233+
234+
def env_functions(self, arg0 : EnvironmentId) -> typing.List[FunctionDesc]:
235+
""""""
236+
237+
return self.rpc.call_sync("env/functions", )
238+
239+
def env_openContract(self, arg0 : ContractId) -> ProofId:
240+
""""""
241+
242+
return self.rpc.call_sync("env/openContract", )
243+
244+
def env_sorts(self, arg0 : EnvironmentId) -> typing.List[SortDesc]:
245+
""""""
246+
247+
return self.rpc.call_sync("env/sorts", )
248+
249+
def examples_list(self, ) -> typing.List[ExampleDesc]:
250+
""""""
251+
252+
return self.rpc.call_sync("examples/list", )
253+
254+
def goal_actions(self, arg0 : NodeTextId, arg1 : int) -> typing.List[TermActionDesc]:
255+
""""""
256+
257+
return self.rpc.call_sync("goal/actions", )
258+
259+
def goal_apply_action(self, arg0 : TermActionId) -> typing.List[TermActionDesc]:
260+
""""""
261+
262+
return self.rpc.call_sync("goal/apply_action", )
263+
264+
def goal_free(self, arg0 : NodeTextId):
265+
""""""
266+
267+
return self.rpc.call_async("goal/free", )
268+
269+
def goal_print(self, arg0 : NodeId, arg1 : PrintOptions) -> NodeTextDesc:
270+
""""""
271+
272+
return self.rpc.call_sync("goal/print", )
273+
274+
def loading_load(self, arg0 : LoadParams) -> typing.Union[EnvironmentId, ProofId]:
275+
""""""
276+
277+
return self.rpc.call_sync("loading/load", )
278+
279+
def loading_loadExample(self, arg0 : str) -> ProofId:
280+
""""""
281+
282+
return self.rpc.call_sync("loading/loadExample", )
283+
284+
def loading_loadKey(self, arg0 : str) -> ProofId:
285+
""""""
286+
287+
return self.rpc.call_sync("loading/loadKey", )
288+
289+
def loading_loadProblem(self, arg0 : ProblemDefinition) -> ProofId:
290+
""""""
291+
292+
return self.rpc.call_sync("loading/loadProblem", )
293+
294+
def loading_loadTerm(self, arg0 : str) -> ProofId:
295+
""""""
296+
297+
return self.rpc.call_sync("loading/loadTerm", )
298+
299+
def meta_available_macros(self, ) -> typing.List[ProofMacroDesc]:
300+
""""""
301+
302+
return self.rpc.call_sync("meta/available_macros", )
303+
304+
def meta_available_script_commands(self, ) -> typing.List[ProofScriptCommandDesc]:
305+
""""""
306+
307+
return self.rpc.call_sync("meta/available_script_commands", )
308+
309+
def meta_version(self, ) -> STRING:
310+
""""""
311+
312+
return self.rpc.call_sync("meta/version", )
313+
314+
def proofTree_children(self, arg0 : ProofId, arg1 : TreeNodeId) -> typing.List[TreeNodeDesc]:
315+
""""""
316+
317+
return self.rpc.call_sync("proofTree/children", )
318+
319+
def proofTree_root(self, arg0 : ProofId) -> TreeNodeDesc:
320+
""""""
321+
322+
return self.rpc.call_sync("proofTree/root", )
323+
324+
def proofTree_subtree(self, arg0 : ProofId, arg1 : TreeNodeId) -> typing.List[TreeNodeDesc]:
325+
""""""
326+
327+
return self.rpc.call_sync("proofTree/subtree", )
328+
329+
def server_exit(self, ):
330+
""""""
331+
332+
return self.rpc.call_async("server/exit", )
333+
334+
def server_setTrace(self, arg0 : SetTraceParams):
335+
""""""
336+
337+
return self.rpc.call_async("server/setTrace", )
338+
339+
def server_shutdown(self, ) -> BOOL:
340+
""""""
341+
342+
return self.rpc.call_sync("server/shutdown", )
343+
344+
class Client(abc.AbcMeta):
345+
@abstractmethod
346+
def client_logTrace(self, arg0 : LogTraceParams):
347+
""""""
348+
349+
pass
350+
351+
@abstractmethod
352+
def client_sayHello(self, arg0 : str):
353+
""""""
354+
355+
pass
356+
357+
@abstractmethod
358+
def client_showDocument(self, arg0 : ShowDocumentParams) -> ShowDocumentResult:
359+
""""""
360+
361+
pass
362+
363+
@abstractmethod
364+
def client_sm(self, arg0 : ShowMessageParams):
365+
""""""
366+
367+
pass
368+
369+
@abstractmethod
370+
def client_userResponse(self, arg0 : ShowMessageRequestParams) -> MessageActionItem:
371+
""""""
372+
373+
pass
374+

key.core/src/main/java/de/uka/ilkd/key/proof/Node.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import java.util.LinkedList;
1313
import java.util.List;
1414
import java.util.ListIterator;
15+
import java.util.stream.Stream;
1516

1617
import de.uka.ilkd.key.logic.RenamingTable;
1718
import de.uka.ilkd.key.logic.Sequent;
@@ -836,4 +837,8 @@ public int getStepIndex() {
836837
void setStepIndex(int stepIndex) {
837838
this.stepIndex = stepIndex;
838839
}
840+
841+
public Stream<Node> childrenStream() {
842+
return children.stream();
843+
}
839844
}

keyext.api.doc/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dependencies {
2+
implementation(project(":keyext.api"))
23
implementation("com.github.javaparser:javaparser-core:3.25.5")
34
implementation("com.github.javaparser:javaparser-symbol-solver-core:3.25.5")
45
}

0 commit comments

Comments
 (0)