Baseline: tree as shared

This commit is contained in:
alexm committed 2026-10-05 03:03:38 +00:00
commit 31f2fb8a5a
1679 files changed
+1024562

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
// Edge semantics every reader should know: chained comparisons, string order, MIN of a list, SORT of text, nested lists.
// EXPECT: TRUE
// EXPECT: TRUE
// EXPECT: 1
// EXPECT: ["apple", "fig", "pear"]
// EXPECT: 6
// EXPECT: FALSE
DECLARE I : INTEGER
I <- 3
OUTPUT 0 <= I < 5
OUTPUT "apple" < "banana"
OUTPUT MIN([4, 1, 9])
DECLARE Fruit : LIST OF STRING
Fruit <- ["pear", "apple", "fig"]
SORT(Fruit)
OUTPUT Fruit
DECLARE Grid : LIST OF LIST OF INTEGER
Grid <- [[1, 2, 3], [4, 5, 6]]
OUTPUT Grid[1][2]
OUTPUT "" IN Fruit