ãããªãã¯ãã¡ã¤ã³ç cflow ã«ã¯ GNU cflow ã® -T, --tree * Draw ASCII art treeã¨ãããªãã·ã§ã³ããªãã®ã§ãã¤ã³ãã³ãã§è¡¨ãããå¼ã³åºãæ§é ï¼ãªããµã¤ãã«ã¼ã«ï¼ï¼ãããªã¼å½¢å¼ã«å¤æããã³ãã³ããæ¸ãã¦ã¿ãã #!/usr/bin/python import sys def getlevel(s): return len(s) - len(s.lstrip()) def parselist(lines): if len(lines) == 0: return [[], 0] tree = [] i = 0 currentlevel = getlevel(lines[0]) while i < len(lines): level = getlevel(lines[i]) if level > currentlevel: # Indent incr
{{#tags}}- {{label}}
{{/tags}}