Closed skius closed 3 years ago
Probably a good idea to move these from the generated code into the code generator, so we can keep the TODOs, but not expose them in user code, since a user can't really do anything about them.
I am happy to accept a pull request on this, if others do not object, which I do not suspect they will.
@awalterschulze I tried something in #101.
This is only a small aesthetic issue, but I don't see the point in having TODO comments in the generated code. I wasn't able to find a previous issue talking about this, so I figured I'd open a discussion.
Specifically I'm talking about
parser/productionstable.go
://TODO: change type and variable names to be consistent with other tables
andtoken/token.go
://TODO: refactor to print pos & token string properly