Created
September 7, 2010 00:23
-
-
Save lsparrish/567686 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| : 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