Scratch: implement compiling executor

This commit is contained in:
Natalia Selezneva
2018-01-19 11:54:31 +03:00
parent dda0b38fb9
commit 654890fac3
16 changed files with 529 additions and 47 deletions
+7
View File
@@ -0,0 +1,7 @@
package myTest;
public class MyJavaClass {
public int test() {
return 1;
}
}
+3
View File
@@ -0,0 +1,3 @@
for (i in 0..5) { // OUTPUT: 0; 1; 2; 3; 4; 5
println(i)
}
+2
View File
@@ -0,0 +1,2 @@
val a = 1 // RESULT: val a: Int
a // RESULT: 1
+5
View File
@@ -0,0 +1,5 @@
fun foo(): Int { // RESULT: fun foo(): Int
return 1
}
foo() // RESULT: 1
+1
View File
@@ -0,0 +1 @@
foo() // ERROR: Unresolved reference: foo
+1
View File
@@ -0,0 +1 @@
println("hello") // OUTPUT: hello