Compare commits

...

5 Commits

Author SHA1 Message Date
Pluemicke Martin
9dd6c1610a geändert: S2017_Jan-Elric_Neumann.pdf 2017-09-04 09:28:53 +02:00
Pluemicke Martin
66bbf9d52d neue Datei: S2017_Jan-Elric_Neumann.pdf
neue Datei:   ../../git_pull_origin_bigRefactoring
	geändert:   ../../test/typeinference/JavaTXCompilerTest.java
2017-09-04 09:26:02 +02:00
JanUlrich
8bff427c5c merge 2017-06-30 13:49:53 +02:00
Pluemicke Martin
bd1cfe4e7a Merge 2017-06-30 13:09:59 +02:00
Martin Plümicke
05e4968adb new bransch 2017-06-30 13:04:56 +02:00
5 changed files with 12 additions and 4 deletions

Binary file not shown.

View File

View File

@ -33,7 +33,11 @@ public class JavaTXParser {
}
//TODO: Wieso muss man das händisch anhängen?
ret.add("java.lang.Object");
ret.add("java.lang.Long");
ret.add("java.lang.Integer");
ret.add("java.lang.Boolean");
ret.add("java.lang.String");
ret.add("java.lang.Class");
return ret;
}
}

View File

@ -24,9 +24,12 @@ public abstract class Expression extends SyntaxTreeNode
}
public abstract void accept(StatementVisitor visitor);
@Override
public void accept(ASTVisitor visitor) {
this.accept((StatementVisitor)visitor);
}
public String toString() { return this.getClass().getName() + ":" + type.toString(); }
}

View File

@ -30,8 +30,9 @@ public class JavaTXCompilerTest extends JavaTXCompiler {
@Test
public void test() throws IOException, ClassNotFoundException {
filesToTest.add(new File(rootDirectory+"Faculty.jav"));
//filesToTest.add(new File(rootDirectory+"mathStruc.jav"));
//filesToTest.add(new File(rootDirectory+"Faculty.jav"));
filesToTest.add(new File(rootDirectory+"mathStruc.jav"));
//filesToTest.add(new File(rootDirectory+"Faculty.jav"));
//filesToTest.add(new File(rootDirectory+"Lambda.jav"));
//filesToTest.add(new File(rootDirectory+"Lambda2.jav"));
//filesToTest.add(new File(rootDirectory+"Lambda3.jav"));
@ -58,4 +59,4 @@ public class JavaTXCompilerTest extends JavaTXCompiler {
return new String(encoded, encoding);
}
}
}