This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as readline from 'node:readline/promises'; | |
| import { stdin as input, stdout as output } from 'node:process'; | |
| const TokenType = Object.freeze({ | |
| EOI: 0, // End-of-input | |
| LEFT_PAREN: 1, | |
| RIGHT_PAREN: 2, | |
| NUMBER: 3, | |
| SYMBOL: 4, | |
| }); |