MatthewKosloski / torrey

The Torrey Programming Language

Home Page:https://torrey.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Store IR instruction keywords in a hashmap

MatthewKosloski opened this issue · comments

Similar to how the Lexer stores all the Torrey keywords in a hashmap, the IR keywords should also be stored in a hashmap. Then, if an IR instruction class needs to access its keyword, it can query the hashmap. Having all these constant strings in one place would improve readability and maintainability.