03:14
stanrifkin_ joined
03:16
stanrifkin left
|
|||
simon_sibl | I think I get it with this sentence | 05:59 | |
quite nice | |||
06:05
stanrifkin_ left
07:11
DarthGandalf left
07:18
DarthGandalf joined
07:45
DarthGandalf left
07:47
DarthGandalf joined
08:29
ACfromTX left
08:41
ACfromTX joined
|
|||
I am not sure to understand token, it says it ignores whitespace, but it does not | 09:36 | ||
token comment { [ ';' || '#' ] \N* } I try to match a line ; some comment | 09:37 | ||
but it doesnt match, I need to add \s* in the beginning | |||
if I add ^^ at the beginning of the TOP rule it works as well | 09:58 | ||
jubilatious1_98524 | I think the token rule is that it ignores whitespace within the regex, not within the text you're trying to match? See: docs.raku.org/language/faq#What's_...d_rule_%3F | 11:00 | |
Rules and tokens differ primarily on :sigspace, see: docs.raku.org/syntax/%3Asigspace | 11:03 | ||
simon_sibl | glot.io/snippets/hbh0ilob1v | 11:06 | |
so I have two questions here | |||
1. why I need to add ^^ for the Grammar to work | 11:07 | ||
2. why I need to add is rw otherwise the method section doesnt work as it should | |||
(the update actually, it keeps @.kv between different section like it that was a reference instead of copy | |||
jubilatious1_98524 | See examples on :sigspace page: "Where whitespace in a regex turns into <.ws> depends on what comes before the whitespace. In the above example, whitespace in the beginning of a regex doesn't turn into <.ws>, but whitespace after characters does." | 11:08 | |
Actually, your example would be a great addition to that sigspace Docs page! | 11:13 | ||
Does this work instead? rule kvpair { $<key> = \w+ [ \= ] $<value> = \N* \N* | 11:18 | ||
Not sure I understand your is rw issue, hopefully others will chime in? | 11:20 | ||
librasteve | each docs page has a pencil icon to link back to the GH repo - please do go there and propose any improvements... | 11:33 | |
17:16
stanrifkin joined
18:46
librasteve_ left
19:20
habere-et-disper joined
|
|||
habere-et-disper | Is "<same>" a thing/documented? Or did I just use something that autovivified? | 19:21 | |
For example: | 19:39 | ||
m: 'abcbccaab'.comb( / <alpha>+ % <same> / ).say | |||
camelia | (a b c b cc aa b) | ||
habere-et-disper | What's the difference (if any) between "adverb-rx-g" and "named-g" in EN.l10n | 20:21 | |
github.com/Raku-L10N/EN/blob/main/EN.l10n | |||
21:29
habere-et-disper left
21:50
disbot2 joined,
disbot1 left
|
|||
lizmat | adverb-rx-g is the g in rx:g/ foo / | 22:12 | |
named-g is the g in .subst( ..., :g ) | 22:13 |