Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
ProofScriptParser
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sarah.grebing
ProofScriptParser
Commits
f9104ab7
Commit
f9104ab7
authored
Feb 14, 2018
by
Sarah Grebing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Utils now contain a static method to printparsableTerms
parent
28c13f04
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
13 deletions
+30
-13
keydeps/lib/components/key.core.jar
keydeps/lib/components/key.core.jar
+0
-0
keydeps/lib/components/key.ui.jar
keydeps/lib/components/key.ui.jar
+0
-0
keydeps/lib/components/key.util.jar
keydeps/lib/components/key.util.jar
+0
-0
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controller/InteractiveModeController.java
...ormal/psdbg/gui/controller/InteractiveModeController.java
+2
-2
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controls/TacletContextMenu.java
.../kit/iti/formal/psdbg/gui/controls/TacletContextMenu.java
+3
-11
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controls/Utils.java
...ain/java/edu/kit/iti/formal/psdbg/gui/controls/Utils.java
+25
-0
No files found.
keydeps/lib/components/key.core.jar
View file @
f9104ab7
No preview for this file type
keydeps/lib/components/key.ui.jar
View file @
f9104ab7
No preview for this file type
keydeps/lib/components/key.util.jar
View file @
f9104ab7
No preview for this file type
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controller/InteractiveModeController.java
View file @
f9104ab7
...
...
@@ -161,8 +161,8 @@ public class InteractiveModeController {
SequentFormula
seqForm
=
tap
.
getPio
().
sequentFormula
();
//transform term to parsable string representation
Sequent
seq
=
g
.
sequent
();
String
sfTerm
=
LogicPrinter
.
quickPrintTerm
(
seqForm
.
formula
(),
keYServices
,
false
,
false
);
String
onTerm
=
LogicPrinter
.
quickPrintTerm
(
tap
.
getPio
().
subTerm
(),
keYServices
,
false
,
false
);
String
sfTerm
=
Utils
.
printParsableTerm
(
seqForm
.
formula
(),
keYServices
);
String
onTerm
=
Utils
.
printParsableTerm
(
tap
.
getPio
().
subTerm
(),
keYServices
);
RuleCommand
.
Parameters
params
=
new
RuleCommand
.
Parameters
();
...
...
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controls/TacletContextMenu.java
View file @
f9104ab7
...
...
@@ -408,17 +408,7 @@ public class TacletContextMenu extends ContextMenu {
final
ClipboardContent
content
=
new
ClipboardContent
();
Term
term
=
pos
.
getPosInOccurrence
().
subTerm
();
Goal
g
=
goal
;
Services
services
=
goal
.
proof
().
getInitConfig
().
getServices
();
NotationInfo
ni
=
new
NotationInfo
();
LogicPrinter
p
=
new
LogicPrinter
(
new
ProgramPrinter
(),
ni
,
services
);
ni
.
refresh
(
services
,
false
,
false
);
String
termString
=
""
;
try
{
p
.
printTerm
(
term
);
}
catch
(
IOException
ioe
)
{
// t.toString();
}
termString
=
p
.
toString
();
String
termString
=
Utils
.
printParsableTerm
(
term
,
goal
);
content
.
putString
(
termString
);
//content.putString(parentController.getProofString()
...
...
@@ -426,6 +416,8 @@ public class TacletContextMenu extends ContextMenu {
clipboard
.
setContent
(
content
);
}
/**
* Checks whether a string is a valid term abbreviation (is not empty and
* only contains 0-9, a-z, A-Z and underscore (_)).
...
...
ui/src/main/java/edu/kit/iti/formal/psdbg/gui/controls/Utils.java
View file @
f9104ab7
...
...
@@ -2,8 +2,13 @@ package edu.kit.iti.formal.psdbg.gui.controls;
import
de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIcon
;
import
de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIconView
;
import
de.uka.ilkd.key.java.Services
;
import
de.uka.ilkd.key.logic.Term
;
import
de.uka.ilkd.key.logic.op.IProgramMethod
;
import
de.uka.ilkd.key.pp.LogicPrinter
;
import
de.uka.ilkd.key.pp.NotationInfo
;
import
de.uka.ilkd.key.pp.ProgramPrinter
;
import
de.uka.ilkd.key.proof.Goal
;
import
de.uka.ilkd.key.speclang.Contract
;
import
edu.kit.iti.formal.psdbg.interpreter.data.GoalNode
;
import
edu.kit.iti.formal.psdbg.interpreter.data.KeyData
;
...
...
@@ -315,4 +320,24 @@ public class Utils {
Clipboard
.
getSystemClipboard
().
setContent
(
map
);
System
.
err
.
println
(
s
);
}
public
static
String
printParsableTerm
(
Term
term
,
Goal
goal
){
Services
services
=
goal
.
proof
().
getInitConfig
().
getServices
();
return
printParsableTerm
(
term
,
services
);
}
public
static
String
printParsableTerm
(
Term
term
,
Services
services
)
{
NotationInfo
ni
=
new
NotationInfo
();
LogicPrinter
p
=
new
LogicPrinter
(
new
ProgramPrinter
(),
ni
,
services
);
ni
.
refresh
(
services
,
false
,
false
);
String
termString
=
""
;
try
{
p
.
printTerm
(
term
);
}
catch
(
IOException
ioe
)
{
// t.toString();
}
termString
=
p
.
toString
();
return
termString
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment