Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature to match multiple regexes simultaneously #16

Closed
SicroAtGit opened this issue Sep 11, 2021 · 0 comments
Closed

Add feature to match multiple regexes simultaneously #16

SicroAtGit opened this issue Sep 11, 2021 · 0 comments
Assignees
Labels
feature New feature
Milestone

Comments

@SicroAtGit
Copy link
Owner

SicroAtGit commented Sep 11, 2021

A RegEx ID number can then be specified for each RegEx, and in the event of a match, the RegEx ID number can be used to determine which RegEx has matched.

If there are multiple RegExes that match the same string and have been assigned different RegEx ID numbers, the RegEx ID number of the last matched RegEx is taken, i.e. the last matched RegEx added with the AddNfa() function.

Useful for building a lexer where different RegEx ID numbers can then be used for the different token types.

@SicroAtGit SicroAtGit self-assigned this Sep 11, 2021
@SicroAtGit SicroAtGit added this to the 1.0 beta milestone Sep 11, 2021
@SicroAtGit SicroAtGit added the feature New feature label Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant