(code: string)
| 1213 | } |
| 1214 | |
| 1215 | export function parseRec2(code: string): TermForRec2 { |
| 1216 | return subsetSystem( |
| 1217 | parse(code), |
| 1218 | ["Boolean", "Number", "Func", "Object", "TaggedUnion", "Rec", "TypeVar"], |
| 1219 | [ |
| 1220 | "true", |
| 1221 | "false", |
| 1222 | "if", |
| 1223 | "number", |
| 1224 | "add", |
| 1225 | "var", |
| 1226 | "func", |
| 1227 | "call", |
| 1228 | "seq", |
| 1229 | "const", |
| 1230 | "objectNew", |
| 1231 | "objectGet", |
| 1232 | "taggedUnionNew", |
| 1233 | "taggedUnionGet", |
| 1234 | "recFunc", |
| 1235 | ], |
| 1236 | ); |
| 1237 | } |
| 1238 | |
| 1239 | export function parsePoly(code: string): TermForPoly { |
| 1240 | return subsetSystem( |
no test coverage detected