fisl

fisl is scheme lox
git clone git://git.alexkarle.com.com/fisl
Log | Files | Refs | README | LICENSE

scope.lox (325B) [raw]


      1 var a = "global a";
      2 var b = "global b";
      3 var c = "global c";
      4 var d = "global d";
      5 {
      6   var a = "outer a";
      7   var b = "outer b";
      8   d = "outer d";
      9   {
     10     var a = "inner a";
     11     d = "inner d";
     12     print a;
     13     print b;
     14     print c;
     15     print d;
     16   }
     17   print a;
     18   print b;
     19   print c;
     20   print d;
     21 }
     22 print a;
     23 print b;
     24 print c;
     25 print d;