The Rosie Pattern Language
rosie-lang.org
The Rosie Pattern Language
1–10 of 20 posts
Re: The Rosie Pattern Language
#2Why use a 'better regex' when PEGs exists?
Re: The Rosie Pattern Language
#3Why use a 'better regex' when PEGs exists?
FTA: "RPL is based on Parsing Expression Grammars, which are more powerful than regex, obviating the need for “recursive regex” or “regex grammars”, both of which are ad hoc extensions and are not commonly supported in regex libraries."
Re: The Rosie Pattern Language
#4If it is so much better and easier to read than regex, why not show any examples? Even the examples page is void of any examples.
Re: The Rosie Pattern Language
#5If it is so much better and easier to read than regex, why not show any examples? Even the examples page is void of any examples.
https://gitlab.com/rosie-pattern-language/rosie/blob/master/...
Yeah I thought the same, found this in the repo though.
Re: The Rosie Pattern Language
#6If it is so much better and easier to read than regex, why not show any examples? Even the examples page is void of any examples.
Yeah. This (linked from the examples page) is OK: https://gitlab.com/rosie-pattern-language/rosie/blob/master/... ... except for the terrible color scheme. The comments on a red background make this look like a diff.
Re: The Rosie Pattern Language
#7If it is so much better and easier to read than regex, why not show any examples? Even the examples page is void of any examples.
A canonical regex pattern vs Rosie pattern should be front and center on the landing page.
I want to immediately judge whether it's worth my time to read more.
Re: The Rosie Pattern Language
#8Re: The Rosie Pattern Language
#9I've look for a while at this, and have come to this conclusion:
At the time I need a multi-line pattern language, I just whip up a FSM-like program in code. And I'll continue to do that.
Re: The Rosie Pattern Language
#10Seems like a middle ground between regex and a parser combinator library.
Also there was a strangeloop talk by it's creator https://youtu.be/MkTiYDrb0zg