blob: 7203b475bf31c2abdda92205a2ec9eade4975936 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/usr/bin/env python
import sys
from girparser import GirParser
from girprinter import GirPrinter
# Possible types:
# function
# callback
# union
# constant
# alias
# class
# record
# interface
# bitfield
# enumeration
def main(args):
if len(args) < 2:
print('Must specify one input filename')
return -1
parser = GirParser()
parser.parse_file(args[1])
printer = GirPrinter(parser)
printer.print_enumerations()
if __name__ == '__main__':
sys.exit(main(sys.argv))
|