return lexer error for unknown characters #3

Closed
opened 2023-06-03 19:44:07 -04:00 by josh · 1 comment
Owner

Currently the lexer hits an infinite loop when an unknown character is seen. Fix this and return a lexer error.

Currently the lexer hits an infinite loop when an unknown character is seen. Fix this and return a lexer error.
Author
Owner

A complication here is that internal helper functions like find_longest_match() and transition() can have multiple result types, each specific to the individual function. I need to come up with a better way to represent these function return statuses, preferably avoiding exceptions.

A complication here is that internal helper functions like find_longest_match() and transition() can have multiple result types, each specific to the individual function. I need to come up with a better way to represent these function return statuses, preferably avoiding exceptions.
josh closed this issue 2023-07-08 10:37:23 -04:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: josh/propane#3
No description provided.