-
Notifications
You must be signed in to change notification settings - Fork 0
Scanner actions #4
Copy link
Copy link
Open
Description
The scanner should be able to be configured on what actions to apply when matching rules. e.g. you would usually want to skip whitespace and tabs.
def default_handler(matched: str, rule) -> Token:
return Token(rule, matched)
def whitespace_handler(matched: str, rule) -> None:
return
scanner.set_handler(whitespace_rule, whitespace_handler)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels