syntax
Define a phrase pattern and its behavior.
Defines a phrase pattern. Captures <name:matcher>, [optional] and (a | b) describe accepted source. Finish with => replacement, as <phrase> or action fn. Attach help = <dictionary> to document arguments and provide a snippet.
Syntax
[(extend | replace)] <name:id> <definition:rest>Example
syntax unless <condition:expr> <body:block> => if !(${condition}) ${body}Arguments
- —
- : —
- definition — Captures <name:matcher>, [optional], (a | b); finish with => replacement, as <phrase> or action fn.
- name — New phrase name; extend preserves the previous syntax as fallback.