()
| 76 | } |
| 77 | |
| 78 | parseExpression() { |
| 79 | let exprStart = this.idx; |
| 80 | let result = this.parseConditional(); |
| 81 | |
| 82 | while (this.tkn === T$Eq) { |
| 83 | if (!result.isAssignable) { |
| 84 | this.err(`Expression ${this.src.slice(exprStart, this.start)} is not assignable`); |
| 85 | } |
| 86 | this.nextToken(); |
| 87 | exprStart = this.idx; |
| 88 | result = new Assign(result, this.parseConditional()); |
| 89 | } |
| 90 | return result; |
| 91 | } |
| 92 | |
| 93 | parseConditional() { |
| 94 | let result = this.parseBinary(0); |
no test coverage detected