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

Support for custom implementations of Token patterns. #331

Closed
bd82 opened this issue Dec 22, 2016 · 2 comments · Fixed by #332
Closed

Support for custom implementations of Token patterns. #331

bd82 opened this issue Dec 22, 2016 · 2 comments · Fixed by #332
Labels

Comments

@bd82
Copy link
Member

bd82 commented Dec 22, 2016

Currently a Token's pattern is defined using regular expressions.

let IntegerToken = createToken({name: "IntegerToken", pattern: /\d+/})

However in some circumstances the capability to provide a custom pattern matching implementation may be required. Perhaps a special Token which cannot be easily defined using regular expressions, or perhaps
to enable solving performance problems in a specific RegularExpression engine, for example:

@bd82
Copy link
Member Author

bd82 commented Dec 24, 2016

re-opening to remind myself to update to performance page (when running on safari)

@bd82 bd82 reopened this Dec 24, 2016
@bd82
Copy link
Member Author

bd82 commented Dec 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant