tidy up
This commit is contained in:
parent
6f4a835e54
commit
ef7dc3603d
5 changed files with 50 additions and 2 deletions
19
examples/scope.lox
Normal file
19
examples/scope.lox
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
var a = "global a";
|
||||
var b = "global b";
|
||||
var c = "global c";
|
||||
{
|
||||
var a = "outer a";
|
||||
var b = "outer b";
|
||||
{
|
||||
var a = "inner a";
|
||||
print a;
|
||||
print b;
|
||||
print c;
|
||||
}
|
||||
print a;
|
||||
print b;
|
||||
print c;
|
||||
}
|
||||
print a;
|
||||
print b;
|
||||
print c;
|
||||
Loading…
Add table
Add a link
Reference in a new issue