...
 
Commits (8)
.mjtest_correct*
.java_output
.preprocessed
# `mjtest` tests
This repository is an initial stub of tests to be used as the `tests/` folder of `mjtest`.
The idea is that students of our compiler lab add their own tests.
See the README of the [mjtest](https://git.scc.kit.edu/IPDSnelting/mjtest) for information on the test case format.
\ No newline at end of file
class Echo {
public static void main(String[] args) throws Exception {
System.out.println(System.in.read());
}
}
package lib;
public class BooleanUtils {
public int toInt(boolean value){
if (value){
return 1;
} else {
return 0;
}
}
public BooleanUtils println(boolean value){
System.out.println(toInt(value));
return this;
}
}
class new_object {
public static void main(String[] args){
new new_object();
}
}
\ No newline at end of file
void method(int a) { return -42; }
\ No newline at end of file
void
identifier method
(
int
identifier a
)
{
return
-
integer literal 42
;
}
EOF
\ No newline at end of file
class UnknownVariable {
public void main(String[] args){
System.out.println(a);
}
}
class A B {}
\ No newline at end of file