Rework Lexer #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What?
Currently the lexer is very poorly written, while it now uses generic Arrays it stills is very bad and a rewrite this early will be good for the overall project health
Why?
Well, it is not sufficient, is not scalable for new operands, it takes responsability for ensuring structure, something that the parser should do. In generall it can be improved in many ways and that is the goal.
How?
I'm going to reserach about how to write a good lexer, specifically one that pairs well with pratt parsing (just need it to work fine i guess) so that it's more compatible and can be better tested.