retro-tags.forth now has a shell component as well

FossilOrigin-Name: a432bb9ba44249ca0231ffa6883c5182c8f4d573071df06e62d268f1dfe01e17
This commit is contained in:
crc 2019-08-20 18:25:44 +00:00
parent 0c00e79fde
commit f19aa703c3

View file

@ -1,4 +1,14 @@
#!/usr/bin/env retro
#!/bin/sh
# ------------------------------------------------------------
rm tags
touch tags
for f in *.forth; do retro $0 "$f" >>tags ; done
for f in *.retro; do retro $0 "$f" >>tags ; done
exit
--------------------------------------------------------------
This will scan a source file and create output for a `tags`
file in the minimal *ctags* format. In this, the tags file
@ -10,7 +20,7 @@ I am using the line number as the tag address.
To generate a tags file:
retro-tags sourcefile > tags
retro-tags
To start, I bring in the `retro-unu` tool to locate the code
blocks and call a combinator for each line in the code block.