retro-tags.forth now has a shell component as well
FossilOrigin-Name: a432bb9ba44249ca0231ffa6883c5182c8f4d573071df06e62d268f1dfe01e17
This commit is contained in:
parent
0c00e79fde
commit
f19aa703c3
1 changed files with 12 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue