diff options
Diffstat (limited to 'js/scripting-lang/baba-yaga-c/turing_complete_demos/03_data_demo.txt')
-rw-r--r-- | js/scripting-lang/baba-yaga-c/turing_complete_demos/03_data_demo.txt | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/js/scripting-lang/baba-yaga-c/turing_complete_demos/03_data_demo.txt b/js/scripting-lang/baba-yaga-c/turing_complete_demos/03_data_demo.txt deleted file mode 100644 index 826ba98..0000000 --- a/js/scripting-lang/baba-yaga-c/turing_complete_demos/03_data_demo.txt +++ /dev/null @@ -1,32 +0,0 @@ -/* Data Structure Demonstration */ - -..out "=== Data Structures: Unlimited Memory ==="; - -/* Basic nested structure */ -person : { - name: "Ada", - info: {age: 36, skills: {"math", "programming"}}, - active: true -}; - -name_val : person.name; -age_val : person.info.age; -..assert name_val = "Ada"; -..assert age_val = 36; -..out "Name: Ada, Age: 36"; - -/* Dynamic key access */ -key : "name"; -dynamic_access : person[key]; -..assert dynamic_access = "Ada"; -..out "Dynamic access: Ada"; - -/* Table building */ -build_record : k v -> {k: v, created: true}; -record : build_record "test" 42; -test_val : record.test; -..assert test_val = 42; -..out "Built record value: 42"; - -..out "---"; -..out "✅ Data structures provide unlimited memory capability"; \ No newline at end of file |