Implemented scopes

This commit is contained in:
2024-10-27 13:44:09 +11:00
parent d22b18ed17
commit c5206daaea
10 changed files with 90 additions and 9 deletions

22
scripts/testificate.toy Normal file
View File

@@ -0,0 +1,22 @@
//normal scope stuff
var answer = 42;
print answer;
{
var answer = 7;
print answer;
}
print answer;
//I wonder if...
var question = 42;
print question;
{
var question = question;
print question;
}
print question;