News for hackers. Stuff that matters.
Re:Melody – a language that compiles to regular expressions by kdtop on Wednesday February 16, 2022 @08:21AM (#30359590)
I have never taken the time to learn RegEx stuff. It seems like it would be great if I could keep all the syntax in my head. So the idea of Melody seems great. I don't like that the github description claims it to be unstable currently. I hope this project continues and flourishes.
Re:Melody – a language that compiles to regular expressions by yoav_lavi on Wednesday February 16, 2022 @10:52AM (#30361573)
Author here, thank you! The reason I stated that Melody is unstable is that the project is very young (days) and so some of the syntax is still being considered and may change (although the general idea and direction will remain), and also not everything is implemented yet. I'm also considering changing the way the parsing works but that wouldn't affect end users in terms of expected results for valid code)
Re:Melody – a language that compiles to regular expressions by thedevelopnik on Wednesday February 16, 2022 @08:39AM (#30359747)
Even as someone who has invested time in learning to write regexp, they are still hard to read and maintain. This project looks super cool!
Re:Melody – a language that compiles to regular expressions by 2OEH8eoCRo0 on Wednesday February 16, 2022 @07:36PM (#30367990)
You could learn it in a few hours. There aren't many rules.
Re:Melody – a language that compiles to regular expressions by gowld on Wednesday February 16, 2022 @06:35PM (#30367368)
Just use one of the many generators

manual: https://regexr.com/

AI: https://regex-generator.olafneumann.org/

Re:Melody – a language that compiles to regular expressions by nixpulvis on Wednesday February 16, 2022 @06:37PM (#30367392)
I'm a big fan of https://rubular.com.