This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
00:35 deoac joined
deoac I just installed rakudo-star, but am having trouble with zef: 00:35
```
~% raku -v
Welcome to Rakudo™ v2023.06.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2023.06.
~% zef -v
===SORRY!===
Parameter * quantifier not applicable to sigil ''
```
~% rakubrew build-zef 00:44
Building zef latest
HEAD is now at 710034f Bump version 0.18.2
Already on 'main'
Your branch is up to date with 'origin/main'.
===SORRY!===
No such method 'name' for invocant of type
'RakuAST::Name::Part::Empty'. Did you mean any of these: 'are', 'none',
'note', 'take'?
Failed running /usr/local/bin/raku -I. bin/zef test . at /Users/jimbollinger/tmp/par-6a696d626f6c6c696e676572/cache-ca652fcef33b0ea11866711f8942456fa9e17297/inc/lib/App/Rakubre
w/Build.pm line 224. 00:45
02:26 teatwo joined 02:29 teatime left 02:31 teatwo left, teatwo joined 05:20 deoac left 07:21 ab5tract left 08:10 dakkar joined 08:31 habere-et-disper joined
habere-et-disper If a grammar token matches, how do I programatically reference the name of the matching token? I can't seem to find it in the match object. Thanks ! 08:39
08:42 habere-et-disper left 09:09 habere-et-disper joined
nemokosch How do you invoke the grammar? 09:27
habere-et-disper With .parse 09:28
I have a bunch of abbreviations that I'm wanting the grammar to expand. 09:29
The tokens match fine.
nemokosch I don't quite remember but grammars produce match objects on the way, like regexes
These are hierarchical match objects that contain the tokens/regexes/rules 09:30
habere-et-disper How to inspect/traverse the match tree ? I tried ^name on token. 09:32
nemokosch A Match object can be taken as a hash, e.g by calling the .hash method on it 09:39
habere-et-disper Aha
:)
10:31 habere-et-disper left 13:52 deoac joined 14:27 tea3po joined 14:30 teatwo left 16:42 dakkar left 18:29 deoac left 23:18 raiph joined, raiph left