News for hackers. Stuff that matters.
Re:App: Rak – 21st century grep / find / ack / ag / rg on st... by msla on Thursday November 02, 2023 @04:09AM (#38110352)
The big thing Raku offers is grammars as a built-in language feature:

https://docs.raku.org/language/grammar_tutorial

> Regular expressions (Regexes) work well for finding patterns in strings. However, for some tasks, like finding multiple patterns at once, or combining patterns, or testing for patterns that may surround strings regular expressions, alone, are not enough.

> When working with HTML, you could define a grammar to recognize HTML tags, both the opening and closing elements, and the text in between. You could then organize these elements into data structures, such as arrays or hashes.

There are no comments on this comment yet.