Skip to content

Conversation

@vlaci
Copy link
Contributor

@vlaci vlaci commented Jan 25, 2024

These are the only anchors supported by Hyperscan, making it easier to write handler patterns that should match exclusively at the beginning or at the end of a stream.

The exception mapping has also been changed in hexstring2regex, as anchors are processed during lexing, and it raises a different exception then what is raised during parsing. Fortunately lark has a nice exception base class to use.

These are the only anchors supported by Hyperscan, making it easier to
write handler patterns that should match exclusively at the beginning
or at the end of a stream.

The exception mapping has also been changed in `hexstring2regex`, as
anchors are processed during lexing, and it raises a different
exception then what is raised during parsing. Fortunately lark has a
nice exception base class to use.
@vlaci vlaci force-pushed the hexstring-anchors branch from 811a311 to 86a90c4 Compare January 25, 2024 09:30
@qkaiser qkaiser self-requested a review January 25, 2024 09:52
@qkaiser qkaiser added the enhancement New feature or request label Jan 25, 2024
@qkaiser qkaiser merged commit f3be256 into main Jan 25, 2024
@qkaiser qkaiser deleted the hexstring-anchors branch January 25, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants