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
// string_manipulation.tralla
// This example demonstrates string concatenation.
@@ -5,12 +6,18 @@ let greeting = "Hello";
let name = "World";
Unire Corde full_greeting greeting name;
print("Concatenated string:", full_greeting); // Expected: Concatenated string: HelloWorld
Matteeeo "Concatenated string:" // Expected: Concatenated string: HelloWorld
Matteeeo full_greeting
Unire Corde message "This is a " "test.";
print("Another concatenated string:", message); // Expected: Another concatenated string: This is a test.
let part1 = "This_is_a_";
let part2 = "test.";
Unire Corde message part1 part2;
Matteeeo "Another concatenated string:" // Expected: Another concatenated string: This_is_a_test.
Matteeeo message
let space = " ";
Unire Corde spaced_greeting greeting space;
Unire Corde final_greeting spaced_greeting name;
print("Concatenated with space:", final_greeting); // Expected: Concatenated with space: Hello World
Matteeeo "Concatenated with space:" // Expected: Concatenated with space: Hello World
Matteeeo final_greeting
Bombardiro Crocodilo