| 294 | } |
| 295 | |
| 296 | function maybeoperator(type, value) { |
| 297 | if (type == "operator" && /\+\+|--/.test(value)) return cont(maybeoperator); |
| 298 | if (type == "operator" || type == ":") return cont(expression); |
| 299 | if (type == ";") return; |
| 300 | if (type == "(") return cont(pushlex(")"), commasep(expression, ")"), poplex, maybeoperator); |
| 301 | if (type == ".") return cont(property, maybeoperator); |
| 302 | if (type == "[") return cont(pushlex("]"), expression, expect("]"), poplex, maybeoperator); |
| 303 | } |
| 304 | |
| 305 | function maybeattribute(type) { |
| 306 | if (type == "attribute") return cont(maybeattribute); |