4 ms·
The big thing Raku offers is grammars as a built-in language feature: https://docs.raku.org/language/grammar_tutorial https://docs.raku.org/language/grammar_tu
by msla 3y ago
The big thing Raku offers is grammars as a built-in language feature:
https://docs.raku.org/language/grammar_tutorial 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.