(byte: number)
| 185 | } |
| 186 | |
| 187 | private isNumberStart(byte: number): boolean { |
| 188 | return ( |
| 189 | (byte >= DIGIT_0 && byte <= DIGIT_9) || // 0-9 |
| 190 | byte === CHAR_PLUS || // + |
| 191 | byte === CHAR_MINUS || // - |
| 192 | byte === CHAR_PERIOD // . |
| 193 | ); |
| 194 | } |
| 195 | |
| 196 | private readNumber(position: number): NumberToken | KeywordToken { |
| 197 | const start = this.scanner.position; |