|
07:35
human-blip left
07:37
human-blip joined
08:00
dakkar joined
13:22
arunvickram joined
13:23
arunvickram left
14:15
sjn left
14:22
sjn joined
|
|||
| lucs | Grammar question: gist.github.com/lucs/444248e1a35bc...0a11b9f277 | 14:35 | |
|
14:40
dakkar left
|
|||
| disbot | <antononcube> @lucs What do you try to see? Can random sentences generated with that grammar be of help? | 14:41 | |
| lucs | Not sure what you mean... | ||
| I'd like line 23 to say "aaa - ddd". | 14:42 | ||
| The idea is that the top should match two bunches of letters: a`s or b`s, then c`s or d`s. | 14:45 | ||
| In the TOP action method, I don't want to have to go through "Did you match a`s? No? Then did you match b`s?" and so on. | 14:46 | ||
| I'm unable to correctly express the two captures that the TOP token obtains. | 14:47 | ||
|
14:49
dakkar joined
15:12
arunvickram joined
15:14
arunvickram left
15:24
disbot left,
disbot4 joined
15:25
disbot4 is now known as disbot
|
|||
| lizmat | and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2026/09/21/2026-...er-favore/ | 15:53 | |
|
16:45
dakkar left
17:40
sivoais left
17:42
sivoais joined,
sivoais left,
sivoais_ joined
17:44
arunvickram joined
17:45
arunvickram left
|
|||
| lucs | No ideas for my grammar problem?: gist.github.com/lucs/444248e1a35bc...0a11b9f277 | 18:47 | |
| disbot | <demanddystopia> hmm | 21:35 | |
| <demanddystopia> if you make that '%s - %s', $0, $1 that works for this case, but only because that happens to align with a & d so that seems like a bad solition, not too good with grammars but pretty sure there's ways to make that indexible by key | 21:37 | ||
| <demanddystopia> ah no, rereading it isn't that actually what's intended here? Given the two capturing groups | 21:43 | ||
| <demanddystopia> could also do $/[0] & $/[1] though I assume that $0 & $1 are just shorthand for that | 21:45 | ||
| lucs | OMG. I can't believe I didn't try that. All the variations I tried had a ".made" appended to the two wanted values, which always result in Nil`s. | 22:00 | |
| Turns out that plain $0 would also work if the a, b, c, d actions weren't defined. | 22:02 | ||
| disbot | <demanddystopia> yeah, because it actually doesn't call them at all with this | 22:03 | |
| lucs | Welp, as you can guess, this is just test code, to try to figure out what wasn't working in my real code. | 22:05 | |
| My real code actually does need to see the made() values attached to the $0 etc. | 22:06 | ||
| disbot | <demanddystopia> ah then that's simpler yea | ||
|
22:42
maylay left
22:48
maylay joined
|
|||