(type)
| 539 | } |
| 540 | } |
| 541 | function typeexpr(type) { |
| 542 | if (type == "variable") {cx.marked = "variable-3"; return cont(afterType);} |
| 543 | if (type == "string" || type == "number" || type == "atom") return cont(afterType); |
| 544 | if (type == "{") return cont(pushlex("}"), commasep(typeprop, "}", ",;"), poplex) |
| 545 | if (type == "(") return cont(commasep(typearg, ")"), maybeReturnType) |
| 546 | } |
| 547 | function maybeReturnType(type) { |
| 548 | if (type == "=>") return cont(typeexpr) |
| 549 | } |