to action pattern:
...
to get value pattern:
return ...
value pattern means: expression
The declaration line contains the function pattern. Names inside that pattern can be parameters.
to declares an action and implicitly opens its execute: body. An action
must return nothing. to get also opens an implicit execute: body, but it
must return a value on every reachable path.
means: declares a flex replacement that produces a value. Its expression is required
on the same line. Use the full function pattern: form when the declaration needs
metadata child sections such as patterns:, before:, or after:.
For plain words, DynLex detects parameters by usage. If the function body uses a plain pattern word, that word becomes a parameter variable.