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

feat: implement basic character classes #5

Closed
4 tasks done
mdjastrzebski opened this issue Dec 5, 2023 · 3 comments
Closed
4 tasks done

feat: implement basic character classes #5

mdjastrzebski opened this issue Dec 5, 2023 · 3 comments

Comments

@mdjastrzebski
Copy link
Member

mdjastrzebski commented Dec 5, 2023

Scope

Implement base character class components:

  • digit
  • word
  • whitespace
  • any

Suggested API

let regex = buildRegex(
    digit(),
    word(),
    whitespace(),
   any(),
)

Refs

Related Issues

@mdjastrzebski mdjastrzebski changed the title feat: implement character classes feat: implement basic character classes Dec 5, 2023
@jaworek
Copy link
Contributor

jaworek commented Dec 6, 2023

I'll take whitespace character class and possibly other when it is done.

@mdjastrzebski
Copy link
Member Author

mdjastrzebski commented Dec 6, 2023

@jaworek go ahead. Whitespace probably need to just emit \s. Actual work is needed to modify the DSL to support it.

@okwasniewski
Copy link
Member

okwasniewski commented Dec 7, 2023

Implemented in #13 by @jaworek

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

3 participants