RecurLoop/ Documentation
RecurLoop/APIv0.2.12

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

recurloop
[(extend | replace)] <name:id> <definition:rest>

Example

recurloop
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.
RecurLoop · 0.2.12