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
553a1d6a
Commit
553a1d6a
authored
Nov 13, 2017
by
Sarah Grebing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sysoiuts
parent
7fe433e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
13 deletions
+15
-13
matcher/src/main/java/edu/kit/iti/formal/psdbg/termmatcher/MatcherFacade.java
...a/edu/kit/iti/formal/psdbg/termmatcher/MatcherFacade.java
+2
-1
rt/src/main/java/edu/kit/iti/formal/psdbg/interpreter/MatchEvaluator.java
.../edu/kit/iti/formal/psdbg/interpreter/MatchEvaluator.java
+1
-0
ui/src/main/resources/edu/kit/iti/formal/psdbg/examples/java/transitive/script.kps
.../kit/iti/formal/psdbg/examples/java/transitive/script.kps
+2
-2
ui/src/main/resources/edu/kit/iti/formal/psdbg/gui/debugger-ui.less
...n/resources/edu/kit/iti/formal/psdbg/gui/debugger-ui.less
+10
-10
No files found.
matcher/src/main/java/edu/kit/iti/formal/psdbg/termmatcher/MatcherFacade.java
View file @
553a1d6a
...
...
@@ -72,6 +72,7 @@ public class MatcherFacade {
public
static
Matchings
matches
(
String
pattern
,
Sequent
sequent
,
boolean
catchAll
)
{
MatchPatternParser
mpp
=
getParser
(
pattern
);
MatchPatternParser
.
SequentPatternContext
ctx
=
mpp
.
sequentPattern
();
logger
.
error
(
"Matching \n"
+
pattern
+
"\n"
+
sequent
.
toString
());
if
(
mpp
.
getNumberOfSyntaxErrors
()
!=
0
)
{
logger
.
info
(
"Invalid pattern syntax '{}' no matches returned."
,
pattern
);
return
new
Matchings
();
...
...
@@ -92,6 +93,6 @@ public class MatcherFacade {
* @return
*/
public
static
Matchings
matches
(
String
pattern
,
Sequent
sequent
)
{
return
matches
(
pattern
,
sequent
,
fals
e
);
return
matches
(
pattern
,
sequent
,
tru
e
);
}
}
rt/src/main/java/edu/kit/iti/formal/psdbg/interpreter/MatchEvaluator.java
View file @
553a1d6a
...
...
@@ -168,6 +168,7 @@ public class MatchEvaluator extends DefaultASTVisitor<List<VariableAssignment>>
//TODO extract the results form the matcher in order to retrieve the selection results
}
else
if
(
TypeFacade
.
isTerm
(
pattern
.
getType
()))
{
va
=
getMatcher
().
matchSeq
(
goal
,
(
String
)
pattern
.
getData
(),
sig
);
System
.
out
.
println
(
"va = "
+
va
);
}
return
va
!=
null
?
va
:
Collections
.
emptyList
();
}
...
...
ui/src/main/resources/edu/kit/iti/formal/psdbg/examples/java/transitive/script.kps
View file @
553a1d6a
...
...
@@ -6,9 +6,9 @@ script prove_transitive(){
//simp_heap;
}
cases{
// case match `seqPerm(?Res0Copy, ?Arr) ==>`:
// case match `seqPerm(?Res0Copy, ?Arr)
, seqPerm(?R, ?Res0Copy)
==>`:
case match `seqPerm(?Res0Copy, ?Arr), seqPerm(?Res0Sort, ?Res0Copy), seqPerm(?Res1Copy0, ?Res0Sort),seqPerm(?Res2Copy1, ?Res0Sort) ==> seqPerm(?Res2Copy1, ?Arr)`:
//
case match `seqPerm(?Res0Copy, ?Arr), seqPerm(?Res0Sort, ?Res0Copy), seqPerm(?Res1Copy0, ?Res0Sort),seqPerm(?Res2Copy1, ?Res0Sort) ==> seqPerm(?Res2Copy1, ?Arr)`:
// SeqPermSym on=`seqPerm(?Res0Copy, ?Arr) ==>`;
// SeqPermSym on=`seqPerm(?Res0Sort, ?Res0Copy) ==>`;
// SeqPermSym on=`seqPerm(?Res1Copy0, ?Res0Sort)==>`;
...
...
ui/src/main/resources/edu/kit/iti/formal/psdbg/gui/debugger-ui.less
View file @
553a1d6a
...
...
@@ -34,8 +34,8 @@
-fx-background-color: @basenavy;
-fx-font-family: "Inconsolata", monospace;
//-fx-font-family: "Fira Code Medium", monospace;
//
-fx-font-size: 12pt;
-fx-font-size: 18pt;
-fx-font-size: 12pt;
//
-fx-font-size: 18pt;
-fx-fill: @base00;
.lineno {
...
...
@@ -131,8 +131,8 @@
.breakpoint-menu {
-fx-skin: "com.sun.javafx.scene.control.skin.ContextMenuSkin";
-fx-font-family: sans-serif;
//was
9
-fx-font-size:
14
pt;
//was
14
-fx-font-size:
9
pt;
}
...
...
@@ -140,8 +140,8 @@
-fx-background-color: @basenavy;
// -fx-background-color: @base3;
-fx-font-family: "Inconsolata", monospace;
//
-fx-font-size: 12pt;
-fx-font-size: 18pt;
-fx-font-size: 12pt;
//
-fx-font-size: 18pt;
-fx-fill: @base01;
...
...
@@ -236,8 +236,8 @@
}
.sequent-view {
//
-fx-font-size: 14pt;
-fx-font-size: 18pt;
-fx-font-size: 14pt;
//
-fx-font-size: 18pt;
-fx-background-color: @basenavy;
-fx-fill: black;
...
...
@@ -248,8 +248,8 @@
}
.closed-sequent-view {
-fx-font-size: 18pt;
//
-fx-font-size: 14pt;
//
-fx-font-size: 18pt;
-fx-font-size: 14pt;
-fx-background-color: @green;
.sequent-highlight {
...
...
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