Skip to content

Scanner actions #4

Description

@Maxcode123

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.

defdefault_handler(matched: str, rule) ->Token:
returnToken(rule, matched)
defwhitespace_handler(matched: str, rule) ->None:
returnscanner.set_handler(whitespace_rule, whitespace_handler)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions