Skip to content

Improve Token: add convenience methods #15

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

Open
mvollmary opened this issue Apr 22, 2022 · 0 comments
Open

Improve Token: add convenience methods #15

mvollmary opened this issue Apr 22, 2022 · 0 comments

Comments

@mvollmary
Copy link
Member

Discussed in noncat-lang/noncat#1

In addition to RegEx some methods would be great to describe the Token, i.e.: using a method optional() instead of * within RegEx.

  • optional()
  • defaultIfEmpty(String)
  • withPrefix(String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant