Created
November 8, 2013 16:07
-
-
Save rogierslag/7373320 to your computer and use it in GitHub Desktop.
MiniJava reference errors with resolving
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Reference | |
language MiniJava | |
start symbol Start | |
test backward variable parameter resolution [[ | |
class Main { | |
public static void main(String[] args) { | |
System.out.println(1); | |
} | |
} | |
class Foobar { | |
public int nom(int [[x]]) { | |
[[x]] = 4; | |
return 4; | |
} | |
} | |
]] resolve #2 to #1 | |
test backward variable parameter with statement resolution [[ | |
class Main { | |
public static void main(String[] args) { | |
System.out.println(1); | |
} | |
} | |
class Foobar { | |
public int nom(int [[x]]) { | |
int number; | |
number = [[x]] + 1; | |
return number; | |
} | |
} | |
]] resolve #2 to #1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment