TypeScript implementation of Lox (https://craftinginterpreters.com)
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
mhmood-sf opened this issue 5 years ago · comments
Remove the whole TokenType and TokenTypes thingy. Just use type TokenType in place of enum, and then string literals ('TokenType') instead of T.TokenType.
TokenType
TokenTypes
type TokenType
'TokenType'
T.TokenType
This will greatly simplify token-type.ts.
token-type.ts