How should Regexes be passed to `MAIN` in Raku?
Is there an idiomatic way to pass a Regex from the command line to a Raku program. The following code accomplishes what I’m trying to do but it has a few issues (see below).
How should Regexes be passed to `MAIN` in Raku?
Is there an idiomatic way to pass a Regex from the command line to a Raku program. The following code accomplishes what I’m trying to do but it has a few issues (see below).
How can I use Raku Grammars with the comb function?
I would like to use Raku’s comb
function with a regex from a Grammar instead of a standalone regex. For example, in the following code, which parses journalctl
logs from stdin, I would like to replace the &h
in MAIN
with something like &Journalctl::full_log
:
How can I use raku grammers with the comb function?
I would like to use raku’s comb
function with a regex from a grammar instead of a stand alone regex. For example in the following code, which parses journalctl
logs from stdin, I would like to replace the &h
in MAIN
with something like &Journalctl::full_log
How to do a multiple dispatch (or an alternative) for a single pair?
I really like the syntax of a pair :3melee
which means melee => 3
. I’d like to do the following:
How to forward declare a role to be used for an enum?
Running this piece of code
What does the $¢ variable do in Raku?
The documentation says that there are only 3 special lexical variables ($_
, $/
, $!
).