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

regex builtins #5

Open
fogti opened this issue Aug 24, 2022 · 0 comments
Open

regex builtins #5

fogti opened this issue Aug 24, 2022 · 0 comments

Comments

@fogti
Copy link

fogti commented Aug 24, 2022

Hi, I've written https://github.com/zseri/nix-builtin-utils (when it hits a stable state I'd like to move it to the nix-community org, but it's not there yet...), which provides a C interface for the regex API which the original Nix implementation uses for builtin.match and builtin.split (look at the test suite for usage examples). These proved to be difficult when trying to transpile Nix to Javascript, and also when trying to implement it in Rust (otherwise I could've just compiled a rust impl to WASM, and get it done that way...) because most regex engines differ, so that they can cause subtle breakage...

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