[#]Rakulang grammar question. Given something like:
[#] Ex. 1 grammar CSV { TOP {} # ?? token column { [ '"' ]? .* \, [ '"']? } } [#] Ex. 2 grammar USD { TOP {} # ?? token dollars { \d ** 3 [',']? } token cents { \. \d ** 2 } }
[#]programming #linux
=> More informations about this toot | More toots from profoundlynerdy@bitbang.social
@smonff I know you're big into #Perl and know it better than I do. I'm not sure if you know Raku well enough to comment but I figured I could ask.
Feel free to reply with a Perl-lish example, even if it isn't valid Raku. 😀
=> More informations about this toot | More toots from profoundlynerdy@bitbang.social
Sorry @profoundlynerdy but I am afraid that I cannot help. I took a look at Raku a long time ago, but then, mostly ignored it as I realized I’ll have to focus more on Perl. I am not even sure I could explain what a grammar is!
=> More informations about this toot | More toots from smonff@rivals.space
@smonff Gotcha.
Grammars are regexes on steroids! https://docs.raku.org/language/grammars
=> More informations about this toot | More toots from profoundlynerdy@bitbang.social
@profoundlynerdy @smonff i was going to ignore this but now that its been highlighted that this is a regexy thing, i'm going to have to revisit #rakulang
=> More informations about this toot | More toots from bocs@toot.wales This content has been proxied by September (3851b).Proxy Information
text/gemini