pokestadium/tools/print_decls.py
2024-08-13 04:55:43 +01:00

12 lines
210 B
Python
Executable File

#!/usr/bin/env python3
import sys
import re
with open(sys.argv[1], "r") as f:
fd = f.read()
funcs = re.findall("(^[a-zA-Z0-9*_]+ .*\(.*\)) {$", fd, re.MULTILINE)
for func in funcs:
print(func + ";")