-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
How are you using (or would like to use) Pomsky? #42
Comments
I would like Pomsky to output, not the raw regular expression, but the delimited version of the string so the process of copy-pasting it into to the programming language becomes more convenient. Please consider such a flag that outputs different programming language flavours of the delimited regular expression. For example, have a js option that produces |
@wmstack IIUC, you want that slashes are already escaped in the output, right? What language are you using Pomsky for? |
I wanted to use it for rust, to experiment with the regex for tokens in https://github.com/maciejhirsz/logos Having to write a regular expression that matches something like a string literal quickly becomes unreadable, and as far as I can see, your DSL language is pretty fit to make it an easier process. So cheers! I have realized that this encoding into a string is not super important, since I can just pipe it into Having to encode a regular expression into a string literal is not a fun or error-free process, so yeah. Not super critical though. |
I use it in several projects, notably a Cron replacement utility and it's incredibly helpful to write simple regexes that would otherwise be overly complicated, like:
|
@ClementNerma I've used your example to showcase syntax highlight in IntelliJ IDEA, hope it's not an issue, in case let me know. |
No problem, glad if it was useful to you :) |
And if you would like to use Pomsky but can't, why?
The text was updated successfully, but these errors were encountered: