retroforth/example/retro-locate.retro
crc b9a787c714 add retro-locate to search the tags file generated by retro-tags
FossilOrigin-Name: f85240e729d909e1e9b244692f41568a77deae68e3ab6304fc456188389884ca
2020-01-08 21:45:46 +00:00

6 lines
216 B
Text
Executable file

#!/usr/bin/env retro
~~~
'Line var
'tags [ &Heap [ ASCII:HT s:tokenize !Line @Line #0 a:fetch #0 sys:argv s:eq? [ @Line #2 a:fetch @Line #1 a:fetch s:put $: c:put s:put nl ] if ] v:preserve ] file:for-each-line
~~~