mhmood-sf / lox.ts

TypeScript implementation of Lox (https://craftinginterpreters.com)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TokenType / TokenTypes

mhmood-sf opened this issue · 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.

This will greatly simplify token-type.ts.