(code: string)
| 558 | } |
| 559 | |
| 560 | export function parseRec2(code: string) { |
| 561 | return subsetSystem( |
| 562 | parse(code), |
| 563 | ["Boolean", "Number", "Func", "Object", "TaggedUnion", "Rec", "TypeVar"], |
| 564 | [ |
| 565 | "true", |
| 566 | "false", |
| 567 | "if", |
| 568 | "number", |
| 569 | "add", |
| 570 | "var", |
| 571 | "func", |
| 572 | "call", |
| 573 | "seq", |
| 574 | "const", |
| 575 | "objectNew", |
| 576 | "objectGet", |
| 577 | "taggedUnionNew", |
| 578 | "taggedUnionGet", |
| 579 | "recFunc", |
| 580 | ], |
| 581 | ); |
| 582 | } |
| 583 | |
| 584 | export function parsePoly(code: string) { |
| 585 | return subsetSystem( |
nothing calls this directly
no test coverage detected