add ast printer

This commit is contained in:
Sebastian Hugentobler 2025-05-27 09:22:29 +02:00
parent 8c500ab6a9
commit 6e02a1a644
Signed by: shu
SSH key fingerprint: SHA256:ppcx6MlixdNZd5EUM1nkHOKoyQYoJwzuQKXM6J/t66M
6 changed files with 314 additions and 1 deletions

8
lox/shadow_local.lox Normal file
View file

@ -0,0 +1,8 @@
{
var a = "local";
{
var a = "shadow";
print a; // expect: shadow
}
print a; // expect: local
}