about summary refs log tree commit diff stats
path: root/js/scripting-lang/baba-yaga-c/test_table_pattern.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/baba-yaga-c/test_table_pattern.txt')
-rw-r--r--js/scripting-lang/baba-yaga-c/test_table_pattern.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/scripting-lang/baba-yaga-c/test_table_pattern.txt b/js/scripting-lang/baba-yaga-c/test_table_pattern.txt
new file mode 100644
index 0000000..5562260
--- /dev/null
+++ b/js/scripting-lang/baba-yaga-c/test_table_pattern.txt
@@ -0,0 +1,9 @@
+/* Test table pattern matching */
+
+/* Test table pattern matching */
+test_table : { status: "placeholder", message: "test" };
+result : when test_table is
+    { status: "placeholder" } then "Placeholder detected"
+    { status: "active" } then "Active state detected"
+    _ then "Unknown state";
+..out result; 
\ No newline at end of file
7:35:56 +0100 added license information' href='/akspecs/ranger/commit/ranger/gui/curses_shortcuts.py?id=b4c2c703f9acdf39cbd47407ed51a7e7c807ba7d'>b4c2c703 ^
43e0f44a ^
ba3f04ea ^

b6d4e3e5 ^
43e0f44a ^
a4570538 ^
ba3f04ea ^
ce421875 ^















0cfc59d6 ^
ba3f04ea ^








ba3f04ea ^


111fd526 ^
ba3f04ea ^
ce421875 ^




ba3f04ea ^
4f51adb3 ^


111fd526 ^
4f51adb3 ^
ce421875 ^




4f51adb3 ^
a23a3649 ^










e99d6857 ^
ba3f04ea ^
e99d6857 ^
ba3f04ea ^





e99d6857 ^
ba3f04ea ^
e99d6857 ^
ba3f04ea ^




ea87d005 ^
43e0f44a ^





ba3f04ea ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109