Commit bdab4f23 authored by Sarah Grebing's avatar Sarah Grebing

bugfix in type handling

parent 910d46fa
Pipeline #21753 passed with stages
in 3 minutes and 17 seconds
......@@ -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
......@@ -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));
}
......
script testSorts(){
b:bool := true;
i:int :='1';
t:TERM<bool> := `1=1`;
}
script test123() {
impRight;
save 'test0' force='yes';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment