Rework Lexer #10
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
laentropia/Calculator#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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.