I like this because Raku grammars are in this weird spot where they’re very powerful, but only for complicated things. It’s hard finding examples of how to use them on simple problems. And that makes them tough to learn because you can’t gradually build up your skills. “Parsing phone numbers” is a good problem for them!
Did you ever look at the PARSE word in REBOL? It let you create grammars, though not new tokens (that being said, there was a rich lexical syntax already).
I like this because Raku grammars are in this weird spot where they’re very powerful, but only for complicated things. It’s hard finding examples of how to use them on simple problems. And that makes them tough to learn because you can’t gradually build up your skills. “Parsing phone numbers” is a good problem for them!
Did you ever look at the
PARSEword in REBOL? It let you create grammars, though not new tokens (that being said, there was a rich lexical syntax already).