Relative Content

Tag Archive for raku

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