File: py2ast

package info (click to toggle)
hy 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,632 kB
  • sloc: python: 7,299; makefile: 38; sh: 27
file content (6 lines) | stat: -rwxr-xr-x 104 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
#!/usr/bin/env python

import ast
import sys

print(ast.dump(ast.parse(open(sys.argv[1], "r").read())))