This commit is contained in:
Giulio Agostini
2025-11-12 20:45:35 +01:00
parent 07cedc27bf
commit ee279425f2
9 changed files with 240 additions and 45 deletions
@@ -1,8 +1,8 @@
// Test script to verify error positioning
var a = 5;
var b = "hello";
var a := 5;
var b := "hello";
print 0;
var result = a + b; // This should cause a type error
var result := a + b; // This should cause a type error
print 1;
43 + "hello"; // This should cause a type error
print result;
+3 -3
View File
@@ -1,10 +1,10 @@
// Test file for source slice tracking
var x = 42;
var x := 42;
print x;
if x > 0 then do
print "positive";
var y = x + 1;
var y := x + 1;
end
elif x == 0 then do
print "zero";
@@ -19,7 +19,7 @@ while x > 0 do
end
do
var z = 10;
var z := 10;
print z * 2;
end