Melody 0.19.0 | A language that compiles to regular expressions and aims to be more readable and maintainable

yoavlavi@programming.dev to Programming@programming.dev – 257 points –
GitHub - yoav-lavi/melody: Melody is a language that compiles to regular expressions and aims to be more easily readable and maintainable
github.com
68

You are viewing a single comment

That's not supported yet but is planned (see the "reverse compiler" feature in the README)

sounds like it would make an amazing VSCode extension

Awesome idea, will definitely take it into consideration when that feature is available. Melody actually has a VSCode extension with highlighting and snippets, could be added to that

Yeah, I think it makes little sense to have another programming language to create a regex but it sounds like a great regex inspect tool.

Keep everything in regex, want to change something complicated? You can translate it into this language, tweak it, then translate it back!

maybe it makes sense if you're working on a project that uses a ton of different regexes and really depends on them, idk what kind of project that would be though

maybe an html parser or web browser? /s

seriously though this would be cool in a compiled language if it's built in, but adding another build step to transpile your regexes might be a bit annoying especially if you're using an interpreted language

It make sense in any project that created by more than one person I suppose.