02:13 mahafyi left 05:05 mahafyi joined
CIAvash .tell colemanx your main issue is `\s*`, which should be `\s+`, but also `\w+` won't match punctuation. Also you can match the whole file with grammar, no need to match line by line: `grammar Row { token TOP { <line>+ }; token line { <sep> [ <cell> ** 5 %% <sep> ] \n? }; token sep { '|' }; token cell { <-[|]>+ }; }`. you can make cell `<-[|\n]>`, and remove ` ** 5` if cells are not supposed to have newlines. 05:52
08:12 dakkar joined 09:50 mahafyi left 15:16 kiky joined, kiky left 15:58 mahafyi joined 16:51 dakkar left
colemanx I have ended up using .split to just solve the problem without grammars. But I will try again on my next parsing problem 17:29
I am reshaping a lot of my company's documentation this sprint, and little scripts are saving my life :) 17:30
I like Raku regexes, I am just not used to writing them, yet
18:46 mahafyi left 20:43 melezhik43 joined 20:48 melezhik43 left