mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
This is a rough script that uses regexes to do a simple scan of source code and extract some basic source code statistics. Things like column width, comment line density, identifier lengths and densities. After scanning, it prints out both raw stats and in a few cases renders a quick histogram to the terminal to help visualize a relevant distribution. I threw this together pretty quickly, and this is an area of Python I have very limited familiarity with, so happy to have any suggestions for how to better approach this.