Collect all declared variables at start of program execution

This commit is contained in:
Peter
2024-04-16 08:12:52 +02:00
parent cb7f6f8e5d
commit f5f5626521
21 changed files with 299 additions and 284 deletions

View File

@@ -1,13 +1,15 @@
int x =10*10;
print(x);
//y = 100;
//print y;
{
int x = 10;
int x =10*10;
print x;
int y = 5;
if(true){
// int x = 10;
int y = x*x;
print(x);
print(y);
print x;
print y;
}
print(y);
//int x = 1;
print y;