Resolving and Binding 11
This commit is contained in:
parent
a1acefab0e
commit
52a7b73a9e
14 changed files with 263 additions and 22 deletions
6
test/err/already_defined.lox
Normal file
6
test/err/already_defined.lox
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
fun bad(){
|
||||
var a = "first";
|
||||
var a = "second";
|
||||
}
|
||||
|
||||
3
test/err/global_scope_return.lox
Normal file
3
test/err/global_scope_return.lox
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
return ":)";
|
||||
|
||||
3
test/err/invalid_syntax.lox
Normal file
3
test/err/invalid_syntax.lox
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
foo
|
||||
|
||||
3
test/err/self_ref_vardecl.lox
Normal file
3
test/err/self_ref_vardecl.lox
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
var x = x + 1;
|
||||
|
||||
3
test/err/undefined_var.lox
Normal file
3
test/err/undefined_var.lox
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
print hello;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue