specialized `enum`s for interpreter impl
Rudxain opened this issue · comments
I was just reading this, and found this. And I realized it would be a good idea to replace the string-only enums by this, to avoid the generic Enum
class.
We also get some benefits, such as:
auto()
, to reduce boilerplate- implicit
str
ing conversion, to avoid appending.value
suffix every-time
I opened this issue to remind myself to open a PR for this. So I want to be "assigned" (in the GitHub context) to this issue.
I'll implement this later. I'm busy right now
Nevermind. It requires Py v3.11 (and the README
says 3.6)
I am sorry that this is a very late reply. Thank you for all of your contributions, and I recently also went back to work on this project, therefore I fixed numerous bugs and added a little more features to the parser. As I was writing the code, indeed I found that adding .value to ever KW is quite complicated and a little bit annoying lol. Don't worry about the readme, we can change it ;)
So continue working on this! 👍👍👍
I'm sorry for the wait. I'll implement this soon. I was (and still am) busy