Created
July 15, 2024 20:20
-
-
Save PhotonQuantum/ca29590e16db148137de83e85f4907ac to your computer and use it in GitHub Desktop.
Coq ctags generation snippet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import re | |
import sys | |
def main(): | |
# Parse `Print Loadpath` and return loaded coq library names. | |
src = "\n".join(sys.stdin.readlines()) | |
pat = re.compile("^[\w.]+\n? +(\/.+\/[^\n\/]+)", re.MULTILINE); | |
print(" ".join(pat.findall(src))) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment