(code: string)
| 1237 | } |
| 1238 | |
| 1239 | export function parsePoly(code: string): TermForPoly { |
| 1240 | return subsetSystem( |
| 1241 | parse(code), |
| 1242 | ["Boolean", "Number", "Func", "TypeAbs", "TypeVar"], |
| 1243 | ["true", "false", "if", "number", "add", "var", "func", "call", "seq", "const", "typeAbs", "typeApp"], |
| 1244 | ); |
| 1245 | } |
| 1246 | |
| 1247 | export function parseSelf(code: string): TermForSelf { |
| 1248 | return subsetSystem( |
no test coverage detected