Refactor: Update all .tralla examples to new 'let' syntax and fix Matteeeo parsing. Acknowledge function return limitation.

This commit is contained in:
Alvin
2025-09-10 13:41:59 +02:00
parent ab29612ca8
commit 089eb8e6af
10 changed files with 108 additions and 62 deletions

View File

@@ -1,3 +1,4 @@
Tralalero Tralala
// calculator.tralla
// This example demonstrates basic arithmetic operations and variable usage.
@@ -5,16 +6,18 @@ let num1 = 10;
let num2 = 5;
let sum = num1 + num2;
print("Sum:", sum); // Expected: Sum: 15
Matteeeo "Sum:" // Expected: Sum: 15
Matteeeo sum
let difference = num1 - num2;
print("Difference:", difference); // Expected: Difference: 5
Matteeeo "Difference:" // Expected: Difference: 5
Matteeeo difference
let product = num1 * num2;
print("Product:", product); // Expected: Product: 50
Matteeeo "Product:" // Expected: Product: 50
Matteeeo product
let quotient = num1 / num2;
print("Quotient:", quotient); // Expected: Quotient: 2
let result = (num1 + num2) * (num1 - num2) / num2;
print("Complex Calculation:", result); // Expected: Complex Calculation: 15
Matteeeo "Quotient:" // Expected: Quotient: 2
Matteeeo quotient
Bombardiro Crocodilo