repo.or.cz
/
swg-src.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Removed Tatooine Commoner Double Spawns
[swg-src.git]
/
utils
/
mocha
/
parse_file.py
blob
7915c60959b17e6373bbbef3090adae583122515
1
#!/usr/bin/env python
2
3
import
sys
4
5
if
len
(
sys
.
argv
) ==
1
:
6
print
(
'''usage: parse_file.py <filename> ...
7
Example: parse_file.py path/to/file.script '''
)
8
sys
.
exit
(
1
)
9
10
from
mocha
.
parser
import
MochaParser
11
12
parser
=
MochaParser
()
13
for
_file
in
sys
.
argv
[
1
:]:
14
print
(
parser
.
parse_file
(
_file
))