diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-05-27 11:09:15 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-05-27 11:09:15 +0000 |
| commit | 8f68df286ecb56d67bef67ce6e3b8caf3d996963 (patch) | |
| tree | 95d08d7a50fb1bb78eccb6f8505e2c5b5072bc91 /docs/internals | |
| parent | allow > and < in symbol names (diff) | |
| download | alive-8f68df286ecb56d67bef67ce6e3b8caf3d996963.tar.gz alive-8f68df286ecb56d67bef67ce6e3b8caf3d996963.zip | |
rename base.match.val → base.match.sig
Diffstat (limited to 'docs/internals')
| -rw-r--r-- | docs/internals/extensions.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/internals/extensions.md b/docs/internals/extensions.md index 29cc075..0140e15 100644 --- a/docs/internals/extensions.md +++ b/docs/internals/extensions.md @@ -79,14 +79,14 @@ and the `Scope` the evaluation happened in. Ops generally shouldn't use the scope, but might look up 'magic' dynamic symbols like `\*clock\*`. #### argument parsing -Arguments should be parsed using `base.match`. The two exports `base.match.val` +Arguments should be parsed using `base.match`. The two exports `base.match.sig` and `base.match.evt` are used to build complex patterns that can parse and validate the Op arguments into complex structures (see the module documentation for more information). - import val, evt from require 'alv.base' + import sig, evt from require 'alv.base' - pattern = evt.bang + val.str + val.num*3 + -evt! + pattern = evt.bang + sig.str + sig.num*3 + -evt! { trig, str, numbers, optional } = pattern\match inputs This example matches first an `EvtStream` of type `bang`, then a `SigStream` |
