Course of Raku / Regexes and grammars / Grammars / Action classes / Writing an action class
Quiz — make
Inside an action method, which function attaches a value to the
current match (so it can later be read with .made)?
| 1 | make |
| 0 | made |
| 0 | take |
| 0 | return |
make stores a value on the match; made (or
.ast) reads it back afterwards. So an action method
computes its result and passes it to make.
Course navigation
← Writing an action class | Inline actions vs action classes →