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
3fbd814d
Commit
3fbd814d
authored
Aug 21, 2017
by
Sarah Grebing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor Beatufication of Help-Dock
parent
1e21327d
Pipeline
#12962
failed with stage
in 4 minutes and 24 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
7 deletions
+38
-7
src/main/antlr4/edu/kit/formal/psdb/termmatcher/MatchPattern.g4
...in/antlr4/edu/kit/formal/psdb/termmatcher/MatchPattern.g4
+16
-1
src/main/java/edu/kit/formal/psdb/gui/controller/DebuggerMain.java
...java/edu/kit/formal/psdb/gui/controller/DebuggerMain.java
+1
-0
src/main/java/edu/kit/formal/psdb/gui/controls/WelcomePane.java
...in/java/edu/kit/formal/psdb/gui/controls/WelcomePane.java
+1
-0
src/main/resources/edu/kit/formal/psdb/gui/intro.html
src/main/resources/edu/kit/formal/psdb/gui/intro.html
+5
-1
src/test/java/edu/kit/formal/psdb/termmatcher/MatcherFacadeTest.java
...va/edu/kit/formal/psdb/termmatcher/MatcherFacadeTest.java
+11
-4
src/test/resources/edu/kit/formal/psdb/termmatcher/test.key
src/test/resources/edu/kit/formal/psdb/termmatcher/test.key
+4
-1
No files found.
src/main/antlr4/edu/kit/formal/psdb/termmatcher/MatchPattern.g4
View file @
3fbd814d
...
...
@@ -34,6 +34,21 @@ STARDONTCARE: '...' | '…';
DIGITS : DIGIT+ ;
fragment DIGIT : [0-9] ;
SID: '?' [_a-zA-Z0-9\\]+ ;
ID : [a-zA-Z\\_] ([_a-zA-Z0-9\\])* ;
ID : [a-zA-Z\\_] ([_a-zA-Z0-9\\])*;
PLUS : '+' ;
MINUS : '-' ;
MUL : '*' ;
DIV : '/' ;
EQ : '=' ;
NEQ : '!=' ;
GEQ : '>=' ;
LEQ : '<=' ;
GE : '>' ;
LE : '<' ;
AND : '&' ;
OR: '|' ;
COMMENT: '//' ~[\n\r]* -> channel(HIDDEN);
WS: [\n\f\r\t ] -> channel(HIDDEN);
\ No newline at end of file
src/main/java/edu/kit/formal/psdb/gui/controller/DebuggerMain.java
View file @
3fbd814d
...
...
@@ -771,6 +771,7 @@ public class DebuggerMain implements Initializable {
WebEngine
webEngine
=
browser
.
getEngine
();
webEngine
.
load
(
url
);
DockNode
dn
=
new
DockNode
(
browser
);
dn
.
setTitle
(
"ScriptLanguage Description"
);
//this.dockStation.getChildren().add(dn);
dn
.
dock
(
dockStation
,
DockPos
.
LEFT
);
}
...
...
src/main/java/edu/kit/formal/psdb/gui/controls/WelcomePane.java
View file @
3fbd814d
...
...
@@ -42,6 +42,7 @@ public class WelcomePane extends AnchorPane {
public
void
loadHelpPage
(
ActionEvent
event
)
{
proofScriptDebugger
.
getWelcomePaneDock
().
close
();
proofScriptDebugger
.
showCommandHelp
(
event
);
proofScriptDebugger
.
showHelpText
();
...
...
src/main/resources/edu/kit/formal/psdb/gui/intro.html
View file @
3fbd814d
...
...
@@ -77,7 +77,11 @@ inst_occ="...").
</ul>
<h3>
Macro-Commands
</h3>
In the KeY system macro commands are proof strategies tailored to specific proof tasks.
The available macro commands are listed below. Using them in a script is similar to using rule commands:
<br>
MACRONAME (PARAMETERS)?
<br>
<!--
...
...
src/test/java/edu/kit/formal/psdb/termmatcher/MatcherFacadeTest.java
View file @
3fbd814d
...
...
@@ -41,7 +41,9 @@ public class MatcherFacadeTest {
shouldMatch
(
"h(a,b)"
,
"h(?X,?X)"
,
"[]"
);
shouldMatch
(
"f(a)"
,
"f(a)"
);
shouldMatchForm
(
"pred(a)"
,
"_"
);
shouldMatchForm
(
"pred(a)"
,
"pred(?X)"
,
"[{?X=a}]"
);
shouldMatchForm
(
"pred(a)"
,
"...?X..."
,
"[{?X=pred(a)}, {?X=a}]"
);
shouldMatchForm
(
"pred(f(a))"
,
"pred(...?X...)"
,
"[{?X=f(a)}, {?X=a}]"
);
shouldMatch
(
"i+j"
,
"add(?X,?Y)"
,
"[{?X=i, ?Y=j}]"
);
//shouldMatch("f(a) ==> f(a), f(b)" , "==> f(?X)", [{?X=a}]);
...
...
@@ -117,11 +119,14 @@ public class MatcherFacadeTest {
shouldMatchSemiSeq
(
"pred(a), pred(b) ==>"
,
"pred(?X), pred(?X)"
,
"[]"
);
shouldMatchSemiSeq
(
"pred(a), pred(f(a)) ==>"
,
"pred(?X), pred(f(?X))"
,
"[{?X=a}]"
);
shouldMatchSemiSeq
(
"pred(b), pred(f(a)) ==>"
,
"pred(?X), pred(f(?X))"
,
"[]"
);
shouldMatchSemiSeq
(
"pred(a), pred(b) ==> qpred(a,b)"
,
"pred(a), pred(b)"
);
shouldMatchSemiSeq
(
"pred(a), pred(b) ==> qpred(a,b)"
,
"pred(?X), pred(?Y)"
,
"[{?X=a, ?Y=b}, {?X=b, ?Y=a}]"
);
shouldMatchSemiSeq
(
"pred(b), pred(a) ==>"
,
"pred(...?X...), pred(f(?X))"
,
"[]"
);
shouldMatchSemiSeq
(
"pred(b), pred(a) ==>"
,
"pred(...?X...), pred(...?Y...)"
,
"[{?X=b, ?Y=a}, {?X=a, ?Y=b}]"
);
shouldMatchSemiSeq
(
"intPred(fint(i+j))"
,
"intPred(...add(?X, ?y)...)"
);
}
private
void
shouldMatchSemiSeq
(
String
s
,
String
s1
,
String
exp
)
throws
ParserException
{
...
...
@@ -149,7 +154,9 @@ public class MatcherFacadeTest {
shouldMatchSeq
(
"pred(a), pred(b) ==> pred(b)"
,
"pred(?X), pred(?Z) ==> pred(?X)"
,
"[{?X=b, ?Z=a}]"
);
shouldMatchSeq
(
"pred(a), pred(b) ==> pred(b)"
,
"pred(?X), pred(?Z) ==>"
,
"[{?X=a, ?Z=b}, {?X=b, ?Z=a}]"
);
shouldMatchSeq
(
"pred(f(a)), pred(b) ==> pred(b)"
,
"pred(?X), pred(?Z) ==>"
,
"[{?X=f(a), ?Z=b}, {?X=b, ?Z=f(a)}]"
);
shouldMatchSeq
(
"pred(f(a)), pred(b) ==> pred(b)"
,
"pred(...?X...) ==>"
,
"[{?X=f(a)}, {?X=a}, {?X=b}]"
);
shouldMatchSeq
(
"==> pred(a)"
,
"==>"
,
"[{EMPTY_MATCH=null}]"
);
shouldMatchSeq
(
"pred(a) ==> "
,
"==>"
,
"[{EMPTY_MATCH=null}]"
);
}
...
...
src/test/resources/edu/kit/formal/psdb/termmatcher/test.key
View file @
3fbd814d
...
...
@@ -18,10 +18,12 @@
\functions {
S a; S b; S c;
int i; int j;
S f(S);
S g(S);
S h(S, S);
int fint(int);
}
\predicates {
...
...
@@ -29,6 +31,7 @@
q;
pred(S);
qpred(S, S);
intPred(int);
}
\problem {
...
...
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