OK, trying some grown-up work.
This commit is contained in:
parent
03f25f0cbe
commit
33771bf254
12
bin/hy-lex-json
Executable file
12
bin/hy-lex-json
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from hy.lex.tokenize import tokenize
|
||||
import json
|
||||
import sys
|
||||
|
||||
|
||||
print json.dumps(
|
||||
tokenize(open(sys.argv[1], 'r').read()),
|
||||
indent=4,
|
||||
sort_keys=True
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user