lexer: Reader.Accept(), AcceptAll(), and StateFn #5

Merged
amery merged 3 commits from pr-amery-lexer into main 2 years ago
amery commented 2 years ago
Owner
There is no content yet.
amery added 2 commits 2 years ago
amery requested review from karasz 2 years ago
karasz requested changes 2 years ago
karasz left a comment
Owner

Can you please rewrite the Run function, your usage of fn is confusing, also err being just declared gets the default value on first iteration which should be nil hence breaking the for loop

Can you please rewrite the Run function, your usage of `fn` is confusing, also `err` being just declared gets the default value on first iteration which should be `nil` hence breaking the for loop
amery added 1 commit 2 years ago
1d62857e14 lexer: introduce StateFn and the basic state machine loop
amery requested review from karasz 2 years ago
Poster
Owner

@karasz amended

@karasz amended
amery added 1 commit 2 years ago
karasz approved these changes 2 years ago
karasz left a comment
Owner

OK

OK
amery merged commit f8f6ff9e11 into main 2 years ago
amery deleted branch pr-amery-lexer 2 years ago
Poster
Owner

v0.3.5 tagged

`v0.3.5` tagged

Reviewers

karasz approved these changes 2 years ago
The pull request has been merged as f8f6ff9e11.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.