Skip to content

Instantly share code, notes, and snippets.

@lsparrish
Created September 7, 2010 00:23
Show Gist options
  • Select an option

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

Select an option

Save lsparrish/567686 to your computer and use it in GitHub Desktop.
: above ( aa-a ) repeat tuck @ over =if drop ;then swap @ 0; again ;
2 elements tp tib 1024 allot
: tib, tp ++ !@tp ;
: tz tib !tp ; tz
2 elements t trig
: findTrig !t trig repeat @ 0; dup 1+ @ @t = not 0; drop again ;
: doTrig findTrig dup 3 + @ swap 2 + @ with-class ;
: addTrig here @trig , !trig , &.word , here 1+ , 0 , 0 , [ ;
: delTrig findTrig dup above swap @ 0; swap ! ;
: listen
tz repeat key
doTrig
not 0; drop
tib,
again ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment