diff options
author | Frederic Peters <fpeters@entrouvert.com> | 2004-08-17 17:09:27 +0000 |
---|---|---|
committer | Frederic Peters <fpeters@entrouvert.com> | 2004-08-17 17:09:27 +0000 |
commit | 54b4251de940ae0b876c4b60e7ee4e793e33ad90 (patch) | |
tree | a94680084c4766894b1172eb3090dafaff2f1cec /docs/lasso-book | |
parent | 2086c111302eeda25fb671667fa2f68bf7f91036 (diff) | |
download | lasso-54b4251de940ae0b876c4b60e7ee4e793e33ad90.tar.gz lasso-54b4251de940ae0b876c4b60e7ee4e793e33ad90.tar.xz lasso-54b4251de940ae0b876c4b60e7ee4e793e33ad90.zip |
this script checks a documentation file for functions that do not exist
Diffstat (limited to 'docs/lasso-book')
-rwxr-xr-x | docs/lasso-book/check-functions.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/lasso-book/check-functions.py b/docs/lasso-book/check-functions.py new file mode 100755 index 00000000..86d68e01 --- /dev/null +++ b/docs/lasso-book/check-functions.py @@ -0,0 +1,22 @@ +#! /usr/bin/env python +# +# Checks a documentation file for functions that do not exist + +import re +import sys + +functions = {} +for line in file(sys.argv[1]): + if not "lasso_" in line: + continue + if not "(" in line: + continue + for f in re.findall(r"(lasso_[a-zA-Z_]+?)\(", line): + functions[f] = 1 + +known_symbols = [x.strip() for x in file("../reference/lasso-decl-list.txt")] + +for f in functions: + if not f in known_symbols: + print f + |