Skip to content

Instantly share code, notes, and snippets.

@lsparrish
Created October 12, 2010 22:57
Show Gist options
  • Select an option

  • Save lsparrish/623079 to your computer and use it in GitHub Desktop.

Select an option

Save lsparrish/623079 to your computer and use it in GitHub Desktop.
chain triggers'
{{
variable dict
: m dup 0 =if nip 0 ;then 2dup 1+ @ =if nip 2 + 0 ;then ;
: n here dict @ , dict ! , ;
: ? dict repeat @ m 0; again ;
---reveal---
: __? @ ? 0; .word ; parsing
: > compiler off 9 , key dup emit n 8 , , ; compile-only
: < here compiler on ;
}}
< variable > v
?v this
< this ! > x
10 ?x
this @
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment