File tree Expand file tree Collapse file tree 1 file changed +25
-14
lines changed Expand file tree Collapse file tree 1 file changed +25
-14
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,32 @@ rules
88
88
to-kast:
89
89
x -> $[# [x](.KList)]
90
90
where <is-int> x
91
-
91
+
92
+
93
+ // to-kast:
94
+ // IdList(b) -> $[ [<to-kast-idlist> b] ]
95
+ //
96
+ //
97
+ // to-kast-idlist:
98
+ // [hd | tl] -> $['IdList([<to-kast> hd],,
99
+ // [<to-kast-idlist> tl])]
100
+ //
101
+ // to-kast-idlist:
102
+ // [] -> $[.IdList]
103
+
104
+
92
105
to-kast:
93
- a#(b) -> $[[<to-kast-userlist> a#(b)]]
94
- where (!a => "SwitchLabelList")
106
+ a#(b) -> $[[<to-kast-userlist> (a,b)]]
107
+ where (!a => "IdList")
108
+
109
+
110
+ to-kast-userlist:
111
+ (a,[[hd | tl]]) -> $['[a]([<to-kast> hd],,
112
+ [<to-kast-userlist> (a, [tl])])]
113
+
114
+ to-kast-userlist:
115
+ (a,[[]]) -> $[.[a]]
116
+ //where debug(!"to-kast-user-0: ")
95
117
96
118
to-kast:
97
119
a#(b) -> $['[a](
@@ -103,9 +125,6 @@ rules
103
125
104
126
to-kast:
105
127
a#(b) -> $[[<to-kast-list> b]]
106
- //where debug(!"MyList: ")
107
- //where not(!a => [])
108
- //where debug(!"Term3: ")
109
128
110
129
111
130
to-kast-list:
@@ -122,15 +141,7 @@ rules
122
141
123
142
124
143
125
- to-kast-userlist:
126
- a#([hd | tl]) -> $['[a]([<to-kast> hd],,
127
- [[<to-kast-userlist> a#(tl)]])]
128
-
129
144
130
-
131
-
132
- to-kast-userlist:
133
- a#([]) -> $[.[a]]
134
145
135
146
136
147
You can’t perform that action at this time.
0 commit comments