Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
sarah.grebing
ProofScriptParser
Commits
bdab4f23
Commit
bdab4f23
authored
May 16, 2018
by
Sarah Grebing
Browse files
bugfix in type handling
parent
910d46fa
Pipeline
#21753
passed with stages
in 3 minutes and 17 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lang/src/main/antlr/edu/kit/iti/formal/psdbg/parser/ScriptLanguage.g4
View file @
bdab4f23
...
...
@@ -214,4 +214,4 @@ QUESTION_MARK: '?';
DIGITS : DIGIT+ ;
fragment DIGIT : [0-9] ;
ID : ([a-zA-Z]|'#'|'_') ([_a-zA-Z0-9] | '.' | '\\'| '#')*;
\ No newline at end of file
ID : ([a-zA-Z]|'#'|'_') ([_a-zA-Z0-9] | '.' | '\\'| '#'|'<'|'>')*;
\ No newline at end of file
lang/src/main/java/edu/kit/iti/formal/psdbg/parser/types/TypeFacade.java
View file @
bdab4f23
...
...
@@ -15,7 +15,8 @@ public final class TypeFacade {
}
if
(
symbol
.
toLowerCase
().
startsWith
(
"term<"
)
&&
symbol
.
endsWith
(
">"
))
{
TermType
tt
=
new
TermType
();
String
n
=
symbol
.
substring
(
6
,
symbol
.
length
()
-
2
);
//get the termtype
String
n
=
symbol
.
substring
(
5
,
symbol
.
length
()
-
1
);
for
(
String
term
:
n
.
split
(
","
))
{
tt
.
getArgTypes
().
add
(
findType
(
term
));
}
...
...
ui/src/main/resources/edu/kit/iti/formal/psdbg/examples/contraposition/script.kps
View file @
bdab4f23
script testSorts(){
b:bool := true;
i:int :='1';
t:TERM<bool> := `1=1`;
}
script test123() {
impRight;
save 'test0' force='yes';
...
...
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