Interface tool #3
taolson
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I recently added
interface.amto the/toolsdirectory. It uses the compiler's parser and module system to read in any Admiran source files specified on the command line and produce a grouped, sorted list of all the top-level definition type specifications. It can be used to produce documentation (seedoc/Library.md), or along withgrepto discover functions by name or by type spec. For example, For example, running the commandinterface lib/*.am | grep "max"returns:Or to find a functions which match a type spec pattern:
interface lib/*.am | fgrep '[*] -> [[*]]':All reactions