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

Suggestion: render railroad diagrams? #5

Open
sbrl opened this issue Jan 6, 2022 · 3 comments
Open

Suggestion: render railroad diagrams? #5

sbrl opened this issue Jan 6, 2022 · 3 comments

Comments

@sbrl
Copy link

sbrl commented Jan 6, 2022

This tool looks really cool! It reminds me of https://regexper.com/ (which is also open-source) - so I thought I'd suggest a railroad diagram, so it would make complex patterns easier to quickly understand :-)

@GitSparTV
Copy link
Owner

Hi, how do you imagine this diagram for a pattern?

@sbrl
Copy link
Author

sbrl commented Jan 16, 2022

Let's consider the following pattern for example: [abc]%s*d?. It might look a bit like this:

image

(image taken from regexper.com by translating the above lua pattern into regular expression).

@GitSparTV
Copy link
Owner

Oof, that definitely needs some js library, I have no clue how to implement this yet

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

2 participants